This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
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.