show columns from имя_таблицы;
\d имя_таблицы;
SELECT
*
FROM
information_schema.columns
WHERE
table_schema = 'schema_name'
AND table_name = 'table_name';
create table books (
ID INT,
AUTHOR VARCHAR
);
SELECT
*
FROM
information_schema.columns
WHERE table_name = 'books';