G
guoDY
Unregistered / Unconfirmed
GUEST, unregistred user!
CREATE PROCEDURE up_selectpoint
@value int OUTPUT,
@tablename varchar(20) ,
@id smallint ,
@day tinyint ,
@section tinyint ,
@pointname tinyint
as
Select @value =value_1
from @tablename /*错误*/
where id=@id and day=@day and section=@section
/*
使用MS SQL SERVER 6.5
要做存储过程,通过参数@tablename来确定查询的表。
上面的写法有错,错误在@tablename处。
问错在哪儿?怎么改?*/
@value int OUTPUT,
@tablename varchar(20) ,
@id smallint ,
@day tinyint ,
@section tinyint ,
@pointname tinyint
as
Select @value =value_1
from @tablename /*错误*/
where id=@id and day=@day and section=@section
/*
使用MS SQL SERVER 6.5
要做存储过程,通过参数@tablename来确定查询的表。
上面的写法有错,错误在@tablename处。
问错在哪儿?怎么改?*/