case when …end as 语法解析: select 列... case when 条件 then 列值1 case when 条件 then 列值1 .... end as 新建列的列名 from 表名... where 条件; 具体实例