display all columns returned by select *
843854Apr 25 2003 — edited Apr 25 2003I can display any column I want:
Statement mystmt = conn.createStatement ();
ResultSet rset = mystmt.executeQuery ("select * from v$database");
// Print the name out
while (rset.next ()) {
System.out.println (rset.getString (1));
}
this displayed the first column.
How do I display all columns? Is there a syntax for it?
Thanks, Chris