Answers for "mysql search for column name"

SQL
4

search column by name mysql

select table_name, column_name 
from information_schema.columns 
where column_name like '%search_keyword%'; -- change search_keyword accordingly
Posted by: Guest on June-16-2021
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 search for column name"

Code answers related to "SQL"

Browse Popular Code Answers by Language