Created
July 18, 2016 12:29
-
-
Save ffeast/6811f4c23fbaee3667f05a0cc46a8067 to your computer and use it in GitHub Desktop.
Tables in the current mysql db containing the specified column
This file contains 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 ('your_column') | |
AND table_schema=(select database()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment