出错了。!!!!!!!!!
declare @ghy_table table
@ghy_table=select maxvalue=(case when ghy1>ghy4 then a end) from a as most
select * from @ghy_table
where @ghy_table.maxvalue is not null
服务器: 消息 170,级别 15,状态 1,行 2
第 2 行: '@ghy_table' 附近有语法错误。
服务器: 消息 137,级别 15,状态 1,行 2
必须声明变量 '@ghy_table'。
怎么改??帮忙