外键
alter table tablename
add constraint FK_****_**** foreign key(外键名) references 外键表(外键名)
外键
alter table tablename
add constraint FK_****_**** foreign key(外键名) references 外键表(外键名)
转载于:https://www.cnblogs.com/tangjian/archive/2009/04/05/1430014.html