Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Possible to insert more than once into same table using multi table insert?

361137Jul 29 2011 — edited Jul 29 2011
I have used multi-table insert before to insert from one source into multiple separate tables no problem.

However when I want to insert into the same table two or more distinct rows I encountered an issue because when I call nextval on the sequence since it is the same sequence # its going to try to use the same number for both the inserts, which will throw a PK constraint violation on the 2nd insert.

Any way to get around this?
This post has been answered by Peter K on Jul 29 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2011
Added on Jul 29 2011
5 comments
314 views