Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to get the ID of the last inserted row
Daniel Morgan wrote:
> Richard Kuhler wrote: >
> You are correct aboutthe context switch but what is the unsafe > assumption? If you understand what it is returning how can you > get back anything other than what you want?
I was referring to the possibility that a trigger could select another value from the sequence between the time the value for the insert is selected and your currval select. In that situation you won't get the value you're probably expecting.
Richard Kuhler Received on Tue Sep 30 2003 - 12:50:40 CDT
![]() |
![]() |