Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

foreign key before primary key

Status
Not open for further replies.

Ravala

Programmer
Jan 28, 2004
88
US
I have table jacket_function with fields:
(object_id - number Primary key generated by trigger,
Jacket_object_id Foreign Key refers to the field object_id of Jacket table also generated by trigger )
I run into the situation when I have to save data in jacket_function first and then jacket table data second. So I have to put some temporary value in Jacket_object_id and update after jacket record will be inserted. What the best way to do it?
thanks.
 
could you give me example using this constraint.
What I have to specify in Jacket_object_id field?
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top