wood burning stoves 2.0*
The moose likes JDBC and the fly likes JDBC basics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC basics" Watch "JDBC basics" New topic
Author

JDBC basics

Tetsuo Suzuki
Greenhorn

Joined: Feb 21, 2002
Posts: 22
Is there a method in the JDBC ResultSet interface that can get the number of columns returned from a query?
Apologies if this question has been asked before...
Tetsuo!
Tetsuo Suzuki
Greenhorn

Joined: Feb 21, 2002
Posts: 22
Oops -> found the answer to my question. ResultSetMetaData interface provides a getColumnCount() method.
Ironically enough I found the solution by googling and looking at how .NET data access works. Very similar to Java.
Hm...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC basics