12 2017 档案

case when语法以及与group by的配合使用
摘要:一:case when语法: case when有两种语法: 语法1: case 某字段 when 值1 then 伪值1 when 值2 then 伪值2 ...... else 伪值n end 注意,when之间没有任何标点符号,且最后要以end结尾,否则会报语法错误。 如有一种常见情况是,数据 阅读全文

posted @ 2017-12-17 17:58 koushr 阅读(6687) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示