查询mysql性别字段0,1变为男女

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/caoxuecheng001/article/details/102555516
select id,saleid,customer,
		 case t.sex when '0' then '男' else '女' end as sex,
		birth,address,phone,idcard,comments
		from t_sale_customer t 

猜你喜欢

转载自blog.csdn.net/caoxuecheng001/article/details/102555516
今日推荐