File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Foreign keys of a particular Table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Foreign keys of a particular Table" Watch "Foreign keys of a particular Table" New topic

Foreign keys of a particular Table

Manu Syal

Joined: Nov 28, 2000
Posts: 4
I need to find the foreign key of a particular table. I am trying this code , but this does not give me all the foreign keys
DatabaseMetaData dbMetaData = con.getMetaData();
Vector foreignkey=new Vector ();
Enumeration e5;


I agree. Here's the link:
subject: Foreign keys of a particular Table
It's not a secret anymore!