Created
December 14, 2016 20:17
-
-
Save xlbruce/011d47b75fdb8ec506a923e66b205c22 to your computer and use it in GitHub Desktop.
List all tables that have a foreign key given a table name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM | |
KEY_COLUMN_USAGE | |
WHERE | |
REFERENCED_TABLE_NAME = 'table_name' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment