How can I get primary keys of a oracle table using JDBC?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   john_qu
Posted On:   Thursday, July 3, 2003 06:03 AM

Is there anyone can tell me how to get pk column name of a oracle table?

Re: How can I get primary keys of a oracle table using JDBC?

Posted By:   Joe_Millionaire  
Posted On:   Thursday, July 3, 2003 06:19 AM

Use the method DatabaseMetaData.getPrimaryKeys(...)

You get a handle to this class from connection.getMetaData().

About | Sitemap | Contact