begin
select @iCount='count(wlRank)from yusiyuan_WGCP where wlRank=1'
print @iCount
end我这个@iCount显示出来是"count(wlRank)from yusiyuan_WGCP where wlRank=1"???
而我是想要它显示一个取得的值如:123456
select @iCount='count(wlRank)from yusiyuan_WGCP where wlRank=1'
print @iCount
end我这个@iCount显示出来是"count(wlRank)from yusiyuan_WGCP where wlRank=1"???
而我是想要它显示一个取得的值如:123456
select @iCount= count(wlRank) from yusiyuan_WGCP where wlRank=1
print @iCount
end
set @iCount=(select count(wlRank)from yusiyuan_WGCP where wlRank=1)
print @iCount
begin
select @iCount='count(wlRank)from yusiyuan_WGCP where wlRank=1'
print @iCount
endselect @iCount='count(wlRank)from yusiyuan_WGCP where wlRank=1' 是把'count(wlRank)from yusiyuan_WGCP where wlRank=1' 赋值给@icountselect @iCount=count(wlRank) from yusiyuan_WGCP where wlRank=1
select 1 from yusiyuan_WGCP where wlRank=1
print @@rowcount
end
select @iCount= count(wlRank) from yusiyuan_WGCP where wlRank=1
print @iCount
end