Created
August 7, 2013 20:25
-
-
Save code-poel/6178267 to your computer and use it in GitHub Desktop.
Find tables with columns.
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 DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME IN ( 'column' ) AND TABLE_SCHEMA='database_name'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment