1.值为一个数字
ResultSet rs = statement.executeQuery("select count(*) from msgInfo" ); if (rs.next()) { recordCount = rs.getInt(1); }