接下来的语句代码:……Statement stmt = conn.createStatement(); //创建语句对象ResultSet rs = stmt.executeQuery(sql1); //执行查询语句while (rs.next()){ out.println(rs.getString("name");//输出姓名}rs.close();stmt.close();conn.close();