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
Oracle seem to have a keywod called "returning" which can return a given column of the inserted row, however that might require you to set the "autoincrement" field manually by invoking the next value in your sequence.
Check this discussion about it:
http://forums.oracle.com/forums/thread.jspa?threadID=354998
However, you can always select the current sequence-number in a second query, sort of like MySQLs last_insert_id()