MySQL learning day03

(1)case语句: 基本语法:case 要判断的字符或表达式 when 常量1 then 要显示的常量 when 常量二 then 要显示的常量 。。。。 end else 要显示的值n; 用法二: case when 条件一 then 要显示的值 when 条件二 then 要显示的值 else end 注意两种用法的比较
相关文章
相关标签/搜索