• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get Oracle Table Names

 
rajesh prakash
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume that this is not for a homework assignment. For Oracle, where "dbmd" is the DatabaseMetaData instance:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic