Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Does Oracle Allow Retrieval of Parsed Insert Statement??

Does Oracle Allow Retrieval of Parsed Insert Statement??

From: Sam Bootsma <SamB_at_cpas.com>
Date: Wed, 31 Jan 2001 13:32:54 -0500
Message-Id: <10758.127922@fatcity.com>


We have a situation where we insert rows into a table, without having knowledge of the primary key. One of our developers needs to determine the rowid of such a row (primary key unknown) immediately after the row is inserted into the table.

Does anybody know if the rowid can be retrieved (or somehow returned) immediately after the row is inserted (without requerying the table)?

The rowid can also be determined by parsing the insert statement, retrieving the primary key, then querying the table for the rowid of the row. Does anybody know if Oracle has an OCI call that returns components of a parsed SQL INSERT statement. Or does anybody have a script or procedure that parses a SQL INSERT statement?

Thanks for any help. Received on Wed Jan 31 2001 - 12:32:54 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US