摘要: Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE); ResultSet rs = stmt.executeQuery(sql); int colcount=rs.getMetaData().getColumnCount(); int rowcount=0; if(rs.next()) { rs.last(); rowcount=rs.getRow(); rs.first(); }注意点:必须先指定:stmt = con.cr... 阅读全文
posted @ 2012-11-15 09:09 loklook123 阅读(176) 评论(0) 推荐(0) 编辑