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
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC basics" Watch "JDBC basics" New topic

JDBC basics

Tetsuo Suzuki

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 Suzuki

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: JDBC basics
Similar Threads
Loading file data into a DB2 table using java
WA #1.....word association
Need guidance for SCJD exam preparation
java sql parser
Need help to write a bot to collect data from internet.