get column names of table mysql and return column names in a list code example
Example: mysql to get column name in database
SELECT table_name, column_name from information_schema.columns WHERE column_name LIKE '%column_name_to_search%';
SELECT table_name, column_name from information_schema.columns WHERE column_name LIKE '%column_name_to_search%';