Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Sequence without holes
Question #1
I would like to have a sequence but as I understand it, if for some reason a user make a rollback or what so ever, I loose his sequence number.
I don't want that. I want a sequence that has no hole, so if a user make a rollback, the next user that request a number would receive the number that was rolled back.
Question #2
How do I lock a row that does not exist? I did not yet insert the row but I will soon and I don't want other user to use my key. I dont want to lock the whole table because I'm not the only who use it. Received on Thu Oct 17 2002 - 15:06:30 CDT