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!

On delete Cascade

User_JIAY3Oct 27 2013 — edited Nov 2 2013

Hi,

we have used alter table to change the constraint in on delete cascade. there is two option. what is different between both of them.

Example:

1)Alter table t3 add constraint t2_F foreign key (id) references t2(id,column2,column3) on delete cascade ;

or

2)Alter table t3 add constraint t2_F foreign key (id) references t2 on delete cascade ;

i know first one that particular column will set to on delete cascade.

What is the use of second one in this case we are not using column name in "foreign key (id) references t2 on delete cascade ;" 

This post has been answered by user12075536123 on Oct 27 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 30 2013
Added on Oct 27 2013
9 comments
1,560 views