dcsimg

How can I determine where a given table is referenced via foreign keys?

Joe Sam Shirah

DatabaseMetaData.getExportedKeys() returns a ResultSet with data similar to that returned by DatabaseMetaData.getImportedKeys(), except that the information relates to other tables that reference the given table as a foreign key container. In other words, what tables have foreign keys that reference this table?