Return to Snippet

Revision: 24161
at February 22, 2010 12:25 by lancemonotone


Initial Code
SELECT DISTINCT TABLE_NAME 
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE COLUMN_NAME IN ('columnA','ColumnB')
        AND TABLE_SCHEMA='YourDatabase';

Initial URL
http://stackoverflow.com/questions/193780/how-to-find-all-the-tables-in-mysql-with-specific-column-names-in-them

Initial Description

                                

Initial Title
Find all tables in MySQL database containing specific column names

Initial Tags

                                

Initial Language
MySQL