java executeQuery()查询的问题

wugui414 2011-08-01 05:43:51
select count(*) from RFM_Portal_Product where spicture is not null
在sql server2005中明明是6913

但是在下面程序返回的结果居然是6900
Connection con = GolbalDbInfo1.getConnection();
String sql = "select count(*) from RFM_Portal_Product where spicture is not null";
try {
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(sql);
rs.next();
System.out.println(rs.getString(1));
} catch (SQLException e) {
e.printStackTrace();
}
...全文
782 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
wenchao003 2012-05-29
  • 打赏
  • 举报
回复
我的 executeQuery() 不能执行 55555555555
c13x14 2012-01-10
  • 打赏
  • 举报
回复
原来如此
剑神一笑 2011-08-01
  • 打赏
  • 举报
回复
接分~~
亲努力啊 2011-08-01
  • 打赏
  • 举报
回复
wugui414 2011-08-01
  • 打赏
  • 举报
回复
抱歉啦,我连错库啦

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧