select t.COLUMN_NAME AS "列名", DATA_TYPE AS "数据类型",
CASE
WHEN DATA_TYPE='BLOB' OR DATA_TYPE='CLOB' OR DATA_TYPE='TEXT' THEN ''
ELSE DATA_LENGTH
END AS "数据长度",
CASE NULLABLE
WHEN 'N' THEN '不能为空'
ELSE ''
END AS "是否允许为空",COMMENTS AS "注释"
from user_tab_columns AS t
INNER JOIN user_col_comments AS c
ON t.COLUMN_NAME=c.COLUMN_NAME AND t.table_name=c.table_name
where t.table_name = 'SOCIAL_INVESTMENT_PROJECT';
ORACLE/DM 查询数据表结构
最新推荐文章于 2024-07-29 15:22:37 发布