SQL語句之CASE WHEN

CASE WHEN 基本概念 Case具備兩種格式:簡單Case函數和Case搜索函數。web 簡單Case函數: CASE sex WHEN ‘1’ THEN ‘男’ WHEN ‘0’ THEN ‘女’ ELSE ‘其餘’ ENDsql Case搜索函數: CASE WHEN sex = ‘1’ THEN ‘男’ WHEN sex = ‘0’ THEN ‘女’ ELSE ‘其餘’ ENDsvg
相關文章
相關標籤/搜索