alter proc sp_getDH(@table varchar(20),@id varchar(10))
As
begin
declare @dh1 char(11)
select @dh1 = max(@id) from @table
end
存盘时提示:必须声明变量 '@table'。
这是为什么呢?
...全文
513打赏收藏
下面语句为何出错?
alter proc sp_getDH(@table varchar(20),@id varchar(10)) As begin declare @dh1 char(11) select @dh1 = max(@id) from @table end 存盘时提示:必须声明变量 '@table'。 这是为什么呢?