declare @sql varchar(8000)

select @sql=isnull(@sql+' drop table ','')+'['+name+']'

from (select name from sysobjects where xtype='u')t

exec('drop table '+ @sql)

相关文章:

  • 2022-12-23
  • 2021-10-16
  • 2021-10-12
  • 2022-12-23
  • 2021-09-23
  • 2021-08-18
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2021-09-25
  • 2022-03-06
  • 2022-02-25
  • 2021-07-28
  • 2021-07-09
  • 2022-12-23
相关资源
相似解决方案