SELECT CASE WHEN `categoryid` =1
THEN '参赛队员'
ELSE '指导老师'
END FROM `blog_article`
WHERE 1
相关文章
- MySql的group_concat函数用法(列转行)
- SHELL用法五(Case语句)
- MySQL · 性能优化 · MySQL常见SQL错误用法
- MySQL DISTINCT关键字详解:用法、实际应用和与GROUP BY的区别
- MySql 更新死锁问题 Deadlock found when trying to get lock; try restarting transaction
- mysql with recursive 递归用法
- MySQL error : Deadlock found when trying to get lock; try restarting transaction
- case when的用法
- mysql中explain的用法和解释
- 关于mysql的sql语句中` `字符的用法 关键字等处理