search for column name in mysql code example
Example 1: mysql find tables with column name
SELECT DISTINCT TABLE_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME IN ('columnA','ColumnB')
AND TABLE_SCHEMA='YourDatabase';
Example 2: search mysql database for column
SELECT table_name, column_name from information_schema.columns WHERE column_name LIKE '%column_name_to_search%';