级联删除设置外键方法

 alter table orders add constraint FK_CUSTOMER foreign key (customer_id) references customers(id);

 alter table orders add constraint FK_CUSTOMER foreign key (customer_id) references customers(id)  on delete cascade on update cascade;

posted @ 2014-04-22 14:45  yujinchao  阅读(231)  评论(0编辑  收藏  举报