Skip to content

Instantly share code, notes, and snippets.

@keopx
Created April 7, 2015 13:36
Show Gist options
  • Save keopx/6c556ff0d298c852867a to your computer and use it in GitHub Desktop.
Save keopx/6c556ff0d298c852867a to your computer and use it in GitHub Desktop.
View FOREIGN KEY
SELECT *
FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
WHERE CONSTRAINT_TYPE = 'FOREIGN KEY'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment