Created
December 16, 2011 13:04
-
-
Save KensoDev/1485969 to your computer and use it in GitHub Desktop.
Search for a column in all tables of the database
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 information_schema.`COLUMNS` C WHERE TABLE_SCHEMA = 'your_db_name' and column_name = 'your_column_name' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment