当前位置:Gxlcms > 数据库问题 > SQL编程

SQL编程

时间:2021-07-01 10:21:17 帮助过:3人阅读

 

1、case…when…then的使用

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

 

SQL编程

标签:

人气教程排行