dreamontheway的技术之路

向着光明,我要一步一步往上爬。

导航

CASE WHEN

if @s_level >0
begin
     set @strTemp_level =
    
           case @s_level
                   when 1 then ' and s<=10 '
                   when 2 then ' and s>10 and s<=20 '
            end
end 阅读全文
类别:sql ado 存储过程 查看评论

posted on 2010-08-24 12:04  dreamontheway  阅读(177)  评论(0编辑  收藏  举报