SELECT COLUMN_NAME name , COLUMN_TYPE type, COLUMN_COMMENT comment
FROM information_schema.COLUMNS
WHERE
TABLE_SCHEMA = 'database_name' AND TABLE_NAME = 'table_name';
SELECT COLUMN_NAME name , COLUMN_TYPE type, COLUMN_COMMENT comment
FROM information_schema.COLUMNS
WHERE
TABLE_SCHEMA = 'database_name' AND TABLE_NAME = 'table_name';