Working with an Oracle 9i database from an ASP.NET 2.0 (VB) application using OLEDB. Is there a way to have an insert statement return a value? I have a sequence set up to number entries as they go into the database, but I need that value to come back after the insert so I can do some manipulation to the set I just entered in the code-behind VB.
Working with an Oracle 9i database from an ASP.NET 2.0 (VB) application using OLEDB.
Share
Some possibilities:
1) Use the RETURNING clause:
2) Use the sequence CURRVAL:
CURRVAL returns the last sequence value generated by your session.