摘要: 1, case..when...then.. 例:select a.id,(case a.station where 0 then "正常" where 1 then "异常" else "未统计入库" end ) 状态 from factory a; 2, IF(expr1,expr2,expr3 阅读全文
posted @ 2020-04-07 14:28 唯恐不及 阅读(625) 评论(0) 推荐(0) 编辑