摘要:
---生成测试表Tif exists(select 1 from sysobjects where Name=N'T' and objectProperty(ID,N'IsUserTable')=1) drop table Tgoselect top 5 ID,Name into T fr... 阅读全文
摘要:
use master go declare @detach nvarchar(4000) set @detach='' select @detach=@detach+char(13)+'exec sp_detach_db '+quotename(Name)+',''true''' fro... 阅读全文
摘要:
if object_id('Tempdb..#Roy') is not null drop table #Roy create table #Roy (a int,b varchar(10),c int,d int) insert #Roy select 1, '小李', 1, 2... 阅读全文