一个case查询语句的使用例子

来源:互联网 发布:淘宝流量下降 编辑:程序博客网 时间:2024/06/04 17:56
Create proc Proc_GetConfig  as  select id,(case isOpen  when '0' then '不开放' when '1' then '开放' end )as isOpen,(case isSearch when '0' then '不开放' when '1' then '开放' end )as isSearch   from tb_config