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!

parent ID column in child trigger

Charitha SharmaJun 25 2014 — edited Jun 27 2014

Hello

This is Charitha

i am using a sequence to generate primary key column in emp table

but i am uing that  in this fashion n1.dept_id||seq.nextval into emp_id

( i.e dept_id + sequence no becomes the employee id )

and i have child table also

in that child table i need to insert this manually generated emp_id into child table emp_id(referenced column )

how to insert

please let me know

Thank you

This post has been answered by BluShadow on Jun 26 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2014
Added on Jun 25 2014
10 comments
4,080 views