aspose file tools
The moose likes JDBC and the fly likes How to get the number of columns in a table Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "How to get the number of columns in a table" Watch "How to get the number of columns in a table" New topic
Author

How to get the number of columns in a table

ms raaghu
Ranch Hand

Joined: Jul 10, 2009
Posts: 63
Hi,
Is there any query to fetch number of columns in a table in postgres?

thanks
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2343

Hi, the Java documentation is your friend. And in your case, a very good friend - because it contains an actual solution for your subject:
java.sql.ResultSetMetaData

OCUP UML fundamental
ITIL foundation
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to get the number of columns in a table
 
Similar Threads
Align of two different tables
com.sybase.jdbc2.jdbc.SybSQLException: Too many parameters -- symbol table overflow.
Populate Excel Spreadsheet
How to make JTable non docable?
a very basic question on sql...