declare @varname nvarchar(128)

while exists (select name from sys.tables where name like 'se_%')
begin
    select top 1 @varname = name from sys.tables where name like N'se_%'
    exec (N'drop table '+@varname)
end
查询出某种规律的表,并删除

 

相关文章:

  • 2022-12-23
  • 2021-10-03
  • 2021-10-04
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-28
  • 2023-02-16
  • 2021-11-07
  • 2022-01-04
  • 2022-12-23
相关资源
相似解决方案