mysql to get column name in database
snippet in sql

get table which have specific columns in mysql

user1376

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

mysql to get column name in database

user6868

SELECT table_name, column_name from information_schema.columns WHERE column_name LIKE '%column_name_to_search%';