aspose file tools*
The moose likes JDBC and the fly likes Retrieving Database Table Column names using JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Retrieving Database Table Column names using JDBC" Watch "Retrieving Database Table Column names using JDBC" New topic
Author

Retrieving Database Table Column names using JDBC

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 759
Hello Guys

I want to retrieve database table column names using jdbc... and want to store it in arraylist...

anybody ??? any idea ???


Jigar Naik


Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Have a look this Java Doc ResultSetMetaData This will helps to get column name through getColumnName() method it's return String so you can insert this in ArrayList by using .add() method


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 759
okis... thanks buddy... thanks once again for showing interest... I'm very greatfull to you...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Retrieving Database Table Column names using JDBC