如何在SQL数据库中说明用1显示男,用0显示女,使其在表中直接显示出来

2025-06-22 11:42:29
推荐回答(1个)
回答1:

select '性别' = case gender when '男' then 1 when '女' then 0 end from tb