public int getAllEmps(){
//第一种方式 纯JDBC方式
// Connection conn=null;
// PreparedStatement ps=null;
// ResultSet rs=null;
// try {
// conn=C3Pool.getConnection();
// String sql="select count(*) from emp";
// ps = conn.prepareStatement(sql);
// rs = ps.executeQuery();
// int num=0;
// while(rs.next()){
// num=rs.getInt(1);
// }
// return num;
// } catch (SQLException e) {
// throw new RuntimeException(e);
// }finally{
// C3Pool.close(conn, ps, rs);
// }
//第二种方式 借助dbutils工具
try {
QueryRunner qr=new