This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes table Names Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "table Names" Watch "table Names" New topic
Author

table Names

jb er
Greenhorn

Joined: May 02, 2003
Posts: 3
Hi,
Iam new to db.
So can some one tell me how I can get all the table names in a database.
I need it to create a jtree.
I know to get columns of a particulsr table using resultsetmetadata.
Can someone help.
J
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Try the following piece of code:


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: table Names
 
Similar Threads
Want to get table names from db in access
Can i build and compile a JAVA pgm in another JAVA program?
help with getting the table name from the user input
How to get list of tables in MS access database into my java program
Retrieve MySQL table column names