Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

display all columns returned by select *

843854Apr 25 2003 — edited Apr 25 2003
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2003
Added on Apr 25 2003
4 comments
206 views