Possible Duplicate:
Get ID of last inserted record in oracle db
I am brand new to oracle, having used SQL Server in the past. I have a stored procedure, and I am trying to do two INSERTs one after the other. The second INSERT requires the ID of the first INSERT. Could someone explain how to do it?
I'm seeing stuff about SEQUENCE
s and nextvalue/curval
?
I guess in SQL Server I'd just declare a variable, and use SCOPE_IDENTITY
, so I'd be looking to do that.