sql 增加键约束 删除主记录在其他表中的相关记录


ALTER TABLE [dbo].[t_workflow_approval]  WITH CHECK ADD  CONSTRAINT [FK_t_workflow_approval_t_workflow_form] FOREIGN KEY([indexid])
REFERENCES [dbo].[t_workflow_form] ([id])
ON UPDATE CASCADE
ON DELETE CASCADE
GO

ALTER TABLE [dbo].[t_workflow_approval] CHECK CONSTRAINT [FK_t_workflow_approval_t_workflow_form]
GO

上一篇:如何在电脑上测试手机网站(补充)和phonegap


下一篇:为什么不能用memcached存储Session?