分页查询:
limit 所要查询的起始行数 ,每页的行数
起始行数=(页数-1)*每页的行数
若要查询第n页,每页为m行:limit (n-1)*m , m
################
PreparedStatement 类 :作为查询
PreparedStatement pstmt = null;
pstmt.setXXX(1, XXXX);
pstmt.setXXX(2, XXXX);
############
Connection con = null;Connection con = null;
rs = stmt.executeQuery(); // 发起请求