2013-04-04 111 views

回答

1
1. include the foreign key constrain in the create table block 

自我解釋你的經驗來看,你正在創建create table中的外鍵約束沒有記錄。

2) create table then Alter table by ADD CONSTRAINT FOREIGN KEY 

如果你沒有在表中的任何記錄,那麼這將表現爲1.如果您在表中的任何記錄,那麼你需要照顧是否可用記錄不違反外鍵約束。