bsp; ResultSetMetaData rsm = rs.getMetaData(); 75 //取得数据库的列数 76 int col = rsm.getColumnCount(); 77 //生成col长度的Object数组 78 Object[] obj = new Object[col]; 79 //遍历结果集,将结果存入Object数组 80 while (rs.next()) { 81 for (int i = 0; i < col; i++) { 82 obj[i] = rs.getObject(i + 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页
|