Hey
JDBC gurus!
Need help. Im working with PreparedStatement to commit a transaction with info to two database tables. The problem is that the second tables INSERT statement needs to know which primary key the first tables INSERT was given, so that the second tables foreign key can be set to the correct value. The foreign key in the second table refers to the primary key in the first table.
How can I get to know which primary key the first INSERT statement is given, before I INSERT the second data chunk?
Hm ... hope you guys understand what my problem is.
Thanks in advance.
Regards