CASE函数用法1:单值判断,相当于switch caseCASE expression WHEN value1 THEN returnvalue1 WHEN value2 THEN returnvalue2 WHEN value3 THEN returnvalue3 ELSE defaultreturnvalue END CASE函数用法2:CASE WHEN condition1 THEN returnvalue1 WHEN condition 2 THEN returnvalue2 WHE…