D
ddynet
Unregistered / Unconfirmed
GUEST, unregistred user!
CREATE procedure TableExists (@tablename varchar(20))
As
declare @s1 varchar(100)
if exists (select * FROM tempdb..sysobjects where id = object_id('TEMPDB..'+@tablename))
begin
set @s1 ='drop table ' + @tablename
execute @s1
end
GO
就是执行不了!!!!!!!!!!!!!!!!!!!!!!!!
As
declare @s1 varchar(100)
if exists (select * FROM tempdb..sysobjects where id = object_id('TEMPDB..'+@tablename))
begin
set @s1 ='drop table ' + @tablename
execute @s1
end
GO
就是执行不了!!!!!!!!!!!!!!!!!!!!!!!!