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
posted @ 2017-12-17 17:58
Powered by:
博客园
Copyright © 2025 koushr
Powered by .NET 9.0 on Kubernetes