标签:res pre man ada get class etc 一个 div
ResultSet selectresult = this.executequery(sql_temp);
int column_count=selectresult.getMetaData().getColumnCount();
int row_count=selectresult.getRow();
this.con = DriverManager.getConnection(url, user, password); this.stmt = con.createStatement(); ResultSet selectresult =this.stmt.executeQuery(sql); int column_count = selectresult.getMetaData().getColumnCount(); int size = 0; while (selectresult.next() && size < 10) { String selectresult_single = ""; for (int i = 1; i <= column_count; i++) { String ColumnName = selectresult.getMetaData().getColumnName(i); String ColumnValue = selectresult.getString(i); selectresult_single = selectresult_single + ColumnName + "=" + ColumnValue + " "; } size = size + 1; }
标签:res pre man ada get class etc 一个 div
原文地址:https://www.cnblogs.com/meitian/p/9025810.html