how to search for column in in all database tables mysql code example
Example 1: search mysql database for column
SELECT table_name, column_name from information_schema.columns WHERE column_name LIKE '%column_name_to_search%';
Example 2: mysql search for column name in all tables
SELECT DISTINCT TABLE_NAME, COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME LIKE '%partial_column_name%'
AND TABLE_SCHEMA='YourDatabase';