[Solved] How to query database column names? [closed]


just change database name and table name with yours and run this query

SELECT `COLUMN_NAME` 
FROM `INFORMATION_SCHEMA`.`COLUMNS` 
WHERE `TABLE_SCHEMA`='database_name' 
AND `TABLE_NAME`='table_name' and  COLUMN_NAME like 'link_%'

solved How to query database column names? [closed]