mysql case when then用法

case when then 的基本用法java SELECT CASE WHEN b.is_leave = 0 THEN '在職' WHEN b.is_leave = 1 THEN '離職' ELSE '狀態爲空' END FROM sys_user_front a LEFT JOIN sys_org_emp b ON a.info_id = b.info_id WHERE 1 = 1
相關文章
相關標籤/搜索