摘要:
--Sql Server 2000declare @id int, @name varchar(100), @s varchar(8000)declare cur_1 cursor for select id,name from sysobjects where xtype='U' --and id=537768973open cur_1fetch cur_1 into @id,@namewhile(@@fetch_status=0)begin if exists(select * from tempdb..sysobjects where id=object_id(' 阅读全文