冰
冰锋
Unregistered / Unconfirmed
GUEST, unregistred user!
存储过程,怎么把表名 做为参数?if那句 怎么写?那句老出错
我的@m_table里的值是从外部传来的
CREATE PROCEDURE usp_createtable
@m_table varchar (20)
AS
IF exists (select * from sysobjects where name= '@m_table')
DROP TABLE @m_table
GO
我的@m_table里的值是从外部传来的
CREATE PROCEDURE usp_createtable
@m_table varchar (20)
AS
IF exists (select * from sysobjects where name= '@m_table')
DROP TABLE @m_table
GO