select (case when 条件 then xxxx(条件为真时的结果) else (为假时) end)as xxx from table
你取值的方法不对,应该是select count(*) into @hasAuth from xxx
if @hasAuth = 1 then
......................
end if
欢迎分享,转载请注明来源:内存溢出
select (case when 条件 then xxxx(条件为真时的结果) else (为假时) end)as xxx from table
你取值的方法不对,应该是select count(*) into @hasAuth from xxx
if @hasAuth = 1 then
......................
end if
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)