select b.TABLE_NAME as "表名",
c.comments as "表说明",
b.COLUMN_ID as "字段序号",
b.COLUMN_NAME as "字段名",
b.DATA_TYPE as "字段数据类型",
b.DATA_LENGTH as "数据长度",
b.DATA_PRECISION as "整数位",
b.DATA_SCALE as "小数位",
a.comments as "字段说明"
from all_col_comments a,all_tab_columns b,all_tab_comments c
where a.TABLE_NAME = 'ADDRESS' and a.owner = b.owner
and a.table_name = b.TABLE_NAME and a.column_name = b.COLUMN_NAME
and c.table_name = a.table_name and c.owner = a.owner
order by a.table_name,b.column_id;
--其主要来源三个表
select * from all_col_comments where owner = 'XXX' and TABLE_NAME = 'ADDRESS';
select * from all_tab_columns where owner = 'XXX' and TABLE_NAME = 'ADDRESS';
select * from all_tab_comments where owner = 'XXX' and TABLE_NAME = 'ADDRESS';
--
Oracle导出表结构
最新推荐文章于 2024-06-15 09:40:51 发布