时间:2021-07-01 10:21:17 帮助过:3人阅读
搜索函数CASE WHEN [expr] THEN [result1]…ELSE [default] END new_col_name
-- 搜索判断 select *, case when s_score < 60 then ‘不及格‘ when s_score >= 60 and s_score < 80 then ‘中等‘ when s_score >= 80 then ‘优秀‘ end score_type from `score`
mysql case when 理解和应用
标签:应用 efault each 搜索 code and rac select 简单函数