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 table Names Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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]
 
Don't get me started about those stupid light bulbs.
 
subject: table Names
 
Similar Threads
Can i build and compile a JAVA pgm in another JAVA program?
Want to get table names from db in access
Retrieve MySQL table column names
help with getting the table name from the user input
How to get list of tables in MS access database into my java program