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!

use trigger and seq to insert into 2 tables

708631Dec 10 2013 — edited Dec 10 2013

I created a sequence.

i have 2 tables

I want a trigger that when I insert into 1 table inserts the nextval sequence number, that is no problem But also is there a way so that once that happens it also inserts that same sequence value into another table.

So end result is a new record in table a with the seq value and a new record in table b with same seq value (and rest of fields blank)

thank you for any help

This post has been answered by Hoek on Dec 10 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 7 2014
Added on Dec 10 2013
7 comments
1,006 views