摘要:
--定义变量存储主键DECLARE @Constraint_Name varchar(128) --获取主键SELECT @Constraint_Name = Name FROM dbo.sysobjects WHERE Xtype = 'PK' and Parent_Obj = ( SELECT [ID] FROM dbo.sysobjects WHERE id = OBJECT_ID(N'TestTableName') ... 阅读全文
摘要:
--定义变量存储主键DECLARE @Constraint_Name varchar(128) --获取主键SELECT @Constraint_Name = Name FROM dbo.sysobjects WHERE Xtype = 'PK' and Parent_Obj = ( SELECT [ID] FROM dbo.sysobjects WHERE id = OBJECT_ID(N'TestTableName') ... 阅读全文
|