pmaltais
asked on
How to get the record ID of a newly inserted record
Hi,
I insert a record in a table wich have an auto-increment ID column. I want to retrieve the newly inserted record by reading the generated ID.
I"m using Oracle 10g. What is the best way to do this? I'm looking for something similar than @@Identity in SQL Server.
Thanks
I insert a record in a table wich have an auto-increment ID column. I want to retrieve the newly inserted record by reading the generated ID.
I"m using Oracle 10g. What is the best way to do this? I'm looking for something similar than @@Identity in SQL Server.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.techonthenet.com/oracle/sequences.php
http://www.databaseanswers.org/sql_scripts/ora_sequence.htm