我这么尝试写了下,但不行。百度了也没找到解决办法,求大佬们指点
select * from CASE @变量 @ WHEN 0 THEN ( Select Statement ) WHEN 1 THEN ( Other Select Statement ) WHEN 2 THEN ( Other Select Statement ) END