使用外键让两张表级联删除更新

alter table dbo.TheVote add constraint fk_TheVote_VoteItems
foreign key (VoteItemsId)
references dbo.VoteItems([Id]) on update cascade on delete cascade

posted @ 2013-10-17 10:14  诸葛风流  阅读(660)  评论(0编辑  收藏  举报