SELECT a."COLUMN_NAME" 字段名称, a."COMMENTS" 中文名称描述, c."DATA_TYPE" 数据类型, IF( c."IS_NULLABLE" = 'YES', '是', '否' ) AS 是否必填 FROM INFORMATION_SCHEMA.COLUMNS c RIGHT JOIN all_col_comments a ON c."table_name" = a."table_name" AND c."COLUMN_NAME" = a."COLUMN_NAME" WHERE "table_schema" = '模式名' AND a."table_name" = '表名'
数据库结构字段介绍