示例:
select id, name, case user_role when 0 then "管理员" when 1 then "未注册用户" when 2 then "注册用户" else concat("未知值:", user_role) end “角色” from user
时间: 2024-10-03 20:39:01
示例:
select id, name, case user_role when 0 then "管理员" when 1 then "未注册用户" when 2 then "注册用户" else concat("未知值:", user_role) end “角色” from user