aspose file tools
The moose likes JDBC and the fly likes How to get Oracle Table Names Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "How to get Oracle Table Names" Watch "How to get Oracle Table Names" New topic
Author

How to get Oracle Table Names

rajesh prakash
Greenhorn

Joined: Nov 02, 2003
Posts: 2
hi all,
I am new to java. Using ResultSetMetaData I can get Column Names
Likewise, I need to display Table Names from My Oracle Database.

Thanks in Advance
Prakash with Problems
rajesh_chess@yahoo.com
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1112

Rajesh,
If you want the list of table names, then you can use the DatabaseMetaData interface. However, if you are asking about the getTableName method in the "ResultSetMetaData" interface, then, as far as I know, it is not implemented (although I understand that that there is a "request for enhancement" regarding its implementation).
Good Luck,
Avi.
rajesh prakash
Greenhorn

Joined: Nov 02, 2003
Posts: 2
hi avi,
I found the method in api DatabaseMetaData and I dont know how to pass the parameters. If anybody knows the coding please help me.
Regards
Prakash
Wayne L Johnson
Ranch Hand

Joined: Sep 03, 2003
Posts: 399
I assume that this is not for a homework assignment. For Oracle, where "dbmd" is the DatabaseMetaData instance:
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to get Oracle Table Names
 
Similar Threads
Retrieve MySQL table column names
how can i get column name of a table
SQL doubt
Want to get table names from db in access
getting list of table names in Oracle and MySQL