9
Select INFORMATION_SCHEMA.COLUMNS
asking for the column COLUMN_NAME
. In INFORMATION_SCHEMA.COLUMNS
you have information about all columns for all tables of a database schema.
Query:
SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'NomedaTabela'