This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 761
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: 761
okis... thanks buddy... thanks once again for showing interest... I'm very greatfull to you...
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Retrieving Database Table Column names using JDBC
 
It's not a secret anymore!