MySQL中 case函数认识和用法

**case 主要两种格式:**sql   手机表 id name count type 1 iphone 5 苹果 2 mi 2 小米 3 huawei 4 华为 4 oppo 1 OPPO 1.简单case函数: case name      when 'xiaomi' then '国产'     when 'huawei' then '国产'     when 'iphone' then '
相关文章
相关标签/搜索