数据库表名作为参数传递给存储过程的方法
CREATE
PROCEDURE
SpecialInsertProcedure
@TableName
varchar
(50),
@userId
varchar
(10),
@pwd
varchar
(10),
@userRole
int
AS
exec
(
'insert into '
+@TableName +
'(userId,pwd,userRole) values ('
''
+@userId+
''
','
''
+@pwd+
''
','
+@userRole+
')'
)
一份耕耘,一份收获,付出就有回报永不遭遇过失败,因我所碰到的都是暂时的挫折