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!

Trigger after insert: get the ID of the inserted column

648405Jul 5 2008 — edited Jul 5 2008
Hi all!

Can I set up a trigger, that is fired immediately after I inserted a column into a table, and do something with the resulting primary key value?
It's an auto incement field, and I want to register that value in another table.

e.g.
- insert a row
- fetch the resulting primary key
- insert another row anywhere else via trigger

regards, Alex
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 2 2008
Added on Jul 5 2008
5 comments
3,910 views