Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Sybase vs Oracle - which is better?
Well, people saying that its bad to use cursors obviously have not been working with large databases.
Example 1 (Sorry the poor pseudo)
UPDATE table SET col='x'
then wait and wait and wait and the KAPOW the ROLLBACK segment fails and your'e
back to square one.
Better then to use a cursor eh!
open cursor while more fetch update if counter = 1000 commit
Example 2 (a bit more absurd, but can't be done without a cursor)
open cursor
while more
fetch
answer = systemcall(does filename exists)
if answer=no
delete row
end while
-
Now leads me on to the question why ORACLE is better than SYBASE in this
regard.
Simple answer ROWID.
I don't think SYBASE has a rowid.
>
Received on Fri Nov 20 1998 - 00:00:00 CST