直接貼sql:sql
select cols.table_name 表名, cols.column_name 列名, cols.data_type 字段類型, cols.data_length 長度, cols.nullable 是否爲空, cols.data_default 默認值, comm.comments 備註 from user_tab_cols cols
left join user_col_comments comm on cols.table_name = comm.table_name and cols.column_name = comm.column_name
where cols.table_name in (select distinct table_name from user_tab_cols) and cols.column_id is not null order by cols.table_name, segment_column_idblog
導出doc:table