Create foreign key in Oracle using ON UPDATE CASCADE

1143015 pts.
Tags:
Foreign keys
Oracle
SQL Server
I'm working with both Oracle and SQL Server. And in SQL, I created a foreign key with the ON UPDATE CASCADE option. So basically, whenever I update the column in the primary key - all of the other foreign keys (in tables) will be updated too. But I'm not sure how to do this in Oracle. Can someone help me?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

I found this on the web for you.

There is not “on update cascade”.

There are ways to do it, 
deferrable constraints. defer the foreign key check until commit, update the parent, update the child and then commit.
use the technique here:

http://asktom.oracle.com/~tkyte/update_cascade/index.html

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: