Foreign key problem
Posted by: lateesh poluparthi
Date: May 25, 2012 01:11AM

Hi All,
I have a table "MASTER" with primary key "acno".
and another table "TendTrans" with primary key "acno,TDate".

i am writing below query as

Alter table TendTrans add constraint foreign key (acno) references master(acno) on delete cascade;


it working perfectly.

but, whenever my server is restarted this foreign key constraint is failing and not showing.
again i have to write this alter command..

can any one pls tell me the remedy.......


thanks in advance.

Options: ReplyQuote


Subject
Views
Written By
Posted
Foreign key problem
2596
May 25, 2012 01:11AM
1395
May 25, 2012 05:03AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.