输入banner图图片脚本导航/分类

SQL编程

 

1、case…when…then的使用

select case brand_id when 1 then ‘三星‘ when 2 then ‘苹果‘ else ‘小米‘ end as brand_id from ecs_goods

 

SQL编程

标签: