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" = '表名'
版权声明:本文为weixin_49999835原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。