sqlCommand=" select count(*) from table;"; conn = dbcm.getConnection();
rs = conn.createStatement().executeQuery(sqlCommand);
在这里,你的记录指针还没有指定!
你只要
rs.next
out.println(rs.getInt(1));
这样就可以。
rs = conn.createStatement().executeQuery(sqlCommand);
在这里,你的记录指针还没有指定!
你只要
rs.next
out.println(rs.getInt(1));
这样就可以。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货