SQL server 批量删除表
select 'drop table '+name+';' from sys.tables
declare c cursor for
select NAME from sysobjects where xtype='U' order by NAME
declare @t varchar(200)
open c
fetch next from c into @t
while @@FETCH_STATUS=0
begin
print('truncate table '+@t)
fetch next from c into @t
end
close c