Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: INSERT w/ RETURNING clause using DBD::Oracle
In article <7prjvh$2b4$1_at_nnrp1.deja.com>, paulsingh_at_my-deja.com writes
>Also, I suspect that this solution wouldn't hold-up with multiple
>users?? e.g., what if User2 inserted into the same table after User1
>did a SELECT on the sequence but before User1's INSERT statement?
Nextval and currval are session specific - they are true for the session and so not affected by multiple users.
Andy
--
Andy Hardy. PGP key available on request