IntelliJ Java IDE
The moose likes JDBC and the fly likes JDBC basics Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JDBC
Reply 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...
 
 
subject: JDBC basics
 
Threads others viewed
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.
MyEclipse, The Clear Choice