<he******@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
i saw some code typing 'EXEC SQL COMMIT' after a cursor fetch .
isn't it just a share lock while fetching ?
Yes, provided the cursor was not defined with FOR UPDATE.
However, locks (both shared and update) are held until a COMMIT is issued.
So you must COMMIT after issuing read-only queries so that these share locks
will be released.
--
Matt Emmerton