使用外键让两张表级联删除更新
2013-10-17 10:14
330 查看
alter table dbo.TheVote add constraint fk_TheVote_VoteItems
foreign key (VoteItemsId)
references dbo.VoteItems([Id]) on update cascade on delete cascade
foreign key (VoteItemsId)
references dbo.VoteItems([Id]) on update cascade on delete cascade
相关文章推荐
- Move模式的细化
- JAVA面向对象总结
- 经常遇到Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be e
- 免费获取 Kaspersky Small Office Security 90 天授权
- sqlserver日期函数<转>
- winxp下简单实现注册表修改、进程创建监控
- Firefox optimization and troubleshooting thread
- 通过 P3P规范让IE跨域接受第三方cookie session
- ASP.NET MVC- Controllers and Routing- Routing
- jQuery选择器总结
- 关于java email端口号问题
- 本地通知
- Serializable和Externalizable
- (公约数问题) Xenia and Hamming (356B)
- [MSSQL]Understand SQL Server Log Shipping
- 大内高手
- Drupal中的模块载入
- 标准C++中的string类的用法总结
- android开发_国外论坛
- 【红米刷机】红米手机卡刷稳定版教程