摘要: -- 查询所有学生的姓名和性别(条件运算) select stuname as 姓名, case stusex when 1 then '男' else '女' end as 性别 from tb_student; select stuname as 姓名, if(stusex, '男', '女') 阅读全文
posted @ 2019-11-12 11:57 乔儿 阅读(215) 评论(0) 推荐(0) 编辑