Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Last inserted record.

412505May 24 2005 — edited Jun 7 2005
I need to get the ID (seq number) of the last record inseerted into an oracle table.

With SQL Server this was accomplished using the @@identity keyword.

I know I can use Max(ID) with a Where clause, but this is not efficent and does not guarantee 100% of returning the correct ID ( because of threading concerns ).
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 5 2005
Added on May 24 2005
1 comment
5,689 views