标签:char order exec var table exe begin sel cts
use store
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
标签:char order exec var table exe begin sel cts
原文地址:https://www.cnblogs.com/zhang-wenbin/p/9644541.html