mysql 查询 表字段, 类型、长度、是否为空、描述
Select COLUMN_NAME , data_type, CHARACTER_MAXIMUM_LENGTH, IS_NULLABLE,COLUMN_COMMENT
from INFORMATION_SCHEMA.COLUMNS
Where table_name = 'plant_category_size' and column_name not in ('CREATE_BY','CREATE_TIME','UPDATE_BY','UPDATE_TIME','COMPANY_CODE','department_code','is_void','tbl_version','loc_timezone')
AND table_schema = 'fengxian' order by COLUMN_COMMENT asc