标签:android io ar java sp for on 问题 cti
============问题描述============
JDBConnection sqlConn = new JDBConnection(); ResultSet resRes = sqlConn.executeQuery("select * from message"); int row = 0; try { resRes.last(); row = resRes.getRow(); ResultSetMetaData resMD = resRes.getMetaData(); int columns = resMD.getColumnCount(); listAll.clear(); resRes.beforeFirst(); System.out.println(resRes.next()); while (resRes.next()) { for (int i = 1; i <= columns; i++) { System.out.println(resRes.getString(i)); listAll.add(resRes.getString(i)); } } } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); }
============解决方案1============
标签:android io ar java sp for on 问题 cti
原文地址:http://www.cnblogs.com/yiguobei99/p/4083239.html