views:

19

answers:

0

Hello,

I want to use OracleCommandBuilder to automatically generate commands for my DataAdapter.

But how can I use the oracles sequences to insert values in those automatically generated commands?

Yes, I know about such construction:

"INSERT INTO myTable (id, my_name, my_date) VALUES (acquiring_seq.nextVal, :my_name, :my_date, ) RETURNING id INTO :id
"

But! 1) OracleClient does not allow me to insert acquiring_seq.nextVal in autgenerated command 2) how can I return result of Id in my Datatable row?