人大金仓数据库,导出数据表的结构
作者:互联网
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" = '表名'
标签:金仓,name,COLUMN,数据库,数据表,table,NAME 来源: https://blog.csdn.net/weixin_49999835/article/details/121443460