sqlserver-----------删除表结构
use IndividualTax
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 ' + name
exec(@sql)
end
转载于:https://www.cnblogs.com/zhang-wenbin/p/9963302.html