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!

How to simultaneously update 3 fields in 3 different tables

Status
Not open for further replies.

newbieDev

Programmer
Jun 11, 2007
38
US
Hello,

I am trying to update 3 fields in 3 different tables - these fields are related so for some reason I can't change one before the other. I tried updating the primary table first, and then the other tables using it as a foreign key but it wouldn't let me. Is there a cascade update thing ORACLE? Does anyone know how to do this?

Any help/suggestion will be greatly appreciated.

Thanks.
 
Copy the parent record to its new ID, update the child tables to point to the new parent ID and then delete the old parent record.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top