zoukankan      html  css  js  c++  java
  • case when的两种用法

    Code

    补充:

    select a.uid,a.uname,a.status

    case when a.status='1' then "在会"

             
    when a.status='0' then "未知"

               
    when a.statsu='-1' then '离开'

              end

        as     状态    

    from a
    case能放到where后面,也可在select中

  • 相关阅读:
    ARM六种寻址方式的汇编实现
    生产者消费者
    哲学家问题
    linux进程的问题
    linux信号量使用
    linux进程创建
    Ubuntu下编写C语言程序
    Android使用图表库简单教程
    不需要SDK调用图灵机器人的方法
    robotframework接口测试实例
  • 原文地址:https://www.cnblogs.com/legend_sun/p/1386293.html
Copyright © 2011-2022 走看看