Below is the query to get all the column names from your table.
SELECT column_name ‘Column Name’
WHERE table_name =’table_name’
The query uses “information_schema.columns” to get the column details of the table.
There are also other information of your table like data type of column same as column_name which you can retrieve using this.