llopx

能跟您分享知识,是我的荣幸

sql code for deleting a batch of tables

declare @sql varchar(8000)
set @sql=''
select @sql=@sql+' drop table '+name from sysobjects where xtype='u' and name like 'moodle_%'
exec(@sql)

posted on 2012-03-05 02:39  llopx  阅读(131)  评论(0编辑  收藏  举报

导航