删除一个数据库中的全部表

use 你想要删除的数据库名字sql GO declare @sql varchar(8000) while (select count(*) from sysobjects where type='U')>0 begin SELECT @sql='drop table ' + name FROM sysobjects WHERE (type = 'U') ORDER BY 'drop table
相关文章
相关标签/搜索