|
A technique that I usally use is to create and use the DB sequece object of that database.
You select the next sequence value from the DataBase using a SQL select statment like "select sequence_name.NEXTVAL from DUEL", Then use that number when you insert a new row.
Very reliable technique.
|