POLITECHNIKA RZESZOWSKA - Wydziat Elektrotechniki i Informatyki
StringBuffer results = new StringBuffer();
ResultSetMetaData metaData = resultSet.getMetaData();
int numberOfColumns = metaData.getColumnCount();
for (int i = 1; i <= numberOfColumns; i++ ) {
results.append(metaData.getColumnName(i) + "\t");
results.append("\n");
while (resultSet.next()) {
for (int i = 1; i <= numberOfColumns; i++) { results.append( resultSet.getObject(i) + "\t");
results += ”\n";
JAVA Wykład 15 nght ■£ 2012 Jan PROKOP