select * from INFORMATION_SCHEMA.Columns where table_name='table1'
SELECT
COLUMN_NAME 字段名,
COLUMN_TYPE 数据类型,
COLUMN_COMMENT 含义,
IS_NULLABLE 是否为空,
COLUMN_DEFAULT 默认值
FROM
INFORMATION_SCHEMA.COLUMNS
where
table_schema ='commercial'
AND
table_name = 'engine1234'
SELECT
COLUMN_NAME 字段名,
COLUMN_TYPE 数据类型,
COLUMN_COMMENT 含义,
IS_NULLABLE 是否为空,
COLUMN_DEFAULT 默认值
FROM
INFORMATION_SCHEMA.COLUMNS
where
table_schema ='commercial'
AND
table_name = 'engine1234'