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中

  • 相关阅读:
    POJMatrix(二维树状数组)
    HD1556Color the ball(树状数组)
    闲的没事,自挂东南枝
    高端、洋气效果
    “绝对”妹纸~position
    float元素一定要闭合
    dw cs6激活码一枚
    shell 预定义变量
    ubuntu 安装docker
    Microsonf visual c++ 14+ 离线内网安装
  • 原文地址:https://www.cnblogs.com/legend_sun/p/1386293.html
Copyright © 2011-2022 走看看