Java Web 端做查询时,性别字段存的是数字,1代表男,2代表女,取数据时将性别转为汉字显示在页面,sql语句如下,结果发生了问题 select a.emp_id,a.emp_name ,case when a.emp_gendar=1 then '男' when a.emp_gendar=2 then '女' end as emp_gendar, b.post_namefrom t_employee_info a, t_position_info bwhere a.post_id = …
sql 语句中定义的变量不能和 sql关键字冲突 from bs_email_account account LEFT JOIN bs_group_info gp ON account.group_id = gp.id from bs_email_account account LEFT JOIN bs_group_info group ON account.group_id = group.id…