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 =
我们可以在Eclipse中新建一个Dynamic Web Project,然后在项目的WebContent目录下新建一个Html文件page1.html,其内容如下: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>page1</title> </head> <body> A Normal Html Page! <