MySQL Forums
Forum List  »  InnoDB

Re: Show Which Tables Reference A Table?
Posted by: eric M
Date: March 10, 2008 07:55AM

I will suggest you look up for all constraints in the customer table, and with that I am sure you can know which table is referencing a column in the customer table.

You can achieve that by executing this command line:

Select from * information_schema.table_constraints where table_name='customer';

if it doesn't provide all what you want, then execute it without specifing the table. i.e (Select from * information_schema.table_constraints).
This will list all the constraints in your DB and the tables being referenced. I hope this helps you.

cheers,

Options: ReplyQuote


Subject
Views
Written By
Posted
6977
February 21, 2008 08:17AM
Re: Show Which Tables Reference A Table?
3930
March 10, 2008 07:55AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.