Answers for "List table columns name in MySQL database"

SQL
3

mysql get column names from table

SELECT `COLUMN_NAME` 
FROM `INFORMATION_SCHEMA`.`COLUMNS` 
WHERE `TABLE_SCHEMA`='yourdatabasename' 
    AND `TABLE_NAME`='yourtablename';
Posted by: Guest on December-18-2020
1

mysql list table columns

DESCRIBE [TABLE_NAME];
Posted by: Guest on July-01-2021

Code answers related to "List table columns name in MySQL database"

Code answers related to "SQL"

Browse Popular Code Answers by Language