This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retrieving Database Table Column names using JDBC

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guys

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

anybody ??? any idea ???
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okis... thanks buddy... thanks once again for showing interest... I'm very greatfull to you...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic