select 'drop table ' + name from sys.objects where type = 'U'
本文提供了一段SQL脚本,用于生成删除指定名称的表的命令。通过此脚本,可以针对类型为'U'的对象(即用户表)批量生成DROP TABLE语句。
select 'drop table ' + name from sys.objects where type = 'U'
580

被折叠的 条评论
为什么被折叠?