title: Find all foreign keys constraints in database referencing a certain primary key
body: <p>I want to find all foreign keys in my database that reference to a primary key of a certain table.</p>
  
  <p>For example, I have a column <code>A</code> in table <code>T</code> which is the primary key. Now I want to find in which tables column <code>A</code> is referenced in a foreign key constraint?</p>
  
  <p>One simple way I've considered is to check the database diagram, but this only works if a database is very small. It's not a very good solution for a database that has more than 50 tables.  </p>
  
  <p>Any alternatives?</p>