摘要: //--创建事务 Create PROC [dbo].[proc_XXXXX] @xxx varchar(50) AS BEGIN BEGIN TRAN BEGIN TRY .....................插入 COMMIT TRAN END TRY BEGIN CATCH SELECT 阅读全文
posted @ 2019-11-25 11:50 enych 阅读(6890) 评论(0) 推荐(0) 编辑
摘要: Truncate table Menu --truncate不能对有外键的表 delete Menu delete RoleMenu SELECT * FROM sys.foreign_keys WHERE referenced_object_id=OBJECT_ID('Menu'); --找到引用 阅读全文
posted @ 2019-11-25 10:38 enych 阅读(1747) 评论(1) 推荐(0) 编辑