Answers for "mysql query to search for a column in all tables"

SQL
1

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';
Posted by: Guest on February-23-2021

Code answers related to "mysql query to search for a column in all tables"

Code answers related to "SQL"

Browse Popular Code Answers by Language