dcsimg
How to get "Table" Meta Data???
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bruno_Braes
Posted On:   Tuesday, August 7, 2001 05:15 AM

Hi,


Simple question: How can I get a list of the Database tables....

I know it has something to do with Meta Data. Anyone a piece of example code?


THX, Bruno.

Re: How to get "Table" Meta Data???

Posted By:   Jeff_Halleux  
Posted On:   Tuesday, August 7, 2001 11:07 PM

This is not tested, but will help :

DatabaseMetaData dbmd=con.getMetaData();
String tableType={"TABLE"};
ResultSet rs=dbmd.getTables(null,"%","%",tableType);
...iterate the resultset


JFH

About | Sitemap | Contact