File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 751
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: 751
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
 
Similar Threads
column names
Finding matching column name
searching for column name
Need help in find the text from 1000 Records
DB-Metadata