2013-04-04 116 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.如果您在表中的任何记录,那么你需要照顾是否可用记录不违反外键约束。