Answers for "how to display the names of columns my sql"

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
2

How to View column names of a table in SQL

DESCRIBE Table_Name;

OR 

DESC Table_Name;
Posted by: Guest on September-25-2020

Code answers related to "how to display the names of columns my sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language