Получить все столбцы из таблицы SQL
SELECT
TABLE_NAME
FROM
INFORMATION_SCHEMA.TABLES
Yucky Yacare
SELECT
TABLE_NAME
FROM
INFORMATION_SCHEMA.TABLES
/* To retreive the column names of table using COLUMN_NAME */
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = N'table_name_here'
SELECT * FROM contacts;