sql query to get all column names from table code example
Example 1: get all columns from table sql
/* To retreive the column names of table using sql */
SELECT COLUMN_NAME.
FROM INFORMATION_SCHEMA. COLUMNS.
WHERE TABLE_NAME = 'Your Table Name'
Example 2: How to View column names of a table in SQL
DESCRIBE Table_Name;
OR
DESC Table_Name;