This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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!
Joined: Feb 21, 2002
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...