SELECT
COLUMN_NAME 列名,
DATA_TYPE 字段类型,
CHARACTER_MAXIMUM_LENGTH 长度,
IS_NULLABLE 是否为空,-- COLUMN_DEFAULT 默认值,
COLUMN_COMMENT 注释
FROM
INFORMATION_SCHEMA.COLUMNS
WHERE
table_schema = 'mosi_activity_customaward'
AND
table_name = 'rights_detailed'
order By ORDINAL_POSITION