Using JDBC (Oracle) I need to insert about thousand rows into each of two tables. Something like this:
\"INSERT INTO TABLE_A (A_ID, A_NAME, A_LAST_NAME) VALU
If I understand your problem correctly, you have a problem with NEXTVAL and CURRVAL since CURRVAL might change due to other DB use? If so, you can change your code to this order:
currentNextVal = select NEXTVAL
INSERT into table_a with currentNextVal as the id
INSERT into table_b with the same currentNextVal
Did I understand your problem correctly?