Hi,
i am using ExecuteOracleNonQuery and getting rowid as output parameter.How can i optimize subsequent related queries by using rowid?
Hi,
i am using ExecuteOracleNonQuery and getting rowid as output parameter.How can i optimize subsequent related queries by using rowid?
Perhaps if you posted the query you're using it would be more clear what it is you're trying to achieve?
The Oracle ROWID identifes a row in a table (but is not unique within the Database). By using ExecuteOracleNonQuery you are only affecting one row if it returns the ROWID, I'm not sure however what it is you plan to do with your 'subsequent related queries'.
A rowid can be used in SELECT, INSERT, UPDATE and DELETE.
SELECT *
FROM mytable
WHERE rowid = :rowid
ROWID is a oracle keyword to directly access a datarow. To access a datarow through rowid there is no index lookup necessary.
Use OracleDbType.RowID to define the type of the parameter :rowid.