标签:
select --*
tcl.column_name,cc.comments col_comments,data_type,
case data_type when ‘NUMBER‘ then ‘(‘||data_precision||‘,‘||data_scale||‘)‘
when ‘VARCHAR2‘ then to_char(char_length)
when ‘CHAR‘ then to_char(char_length)
when ‘DATE‘ then ‘‘ else ‘no‘ end str_data_length,
--data_length,data_precision,data_scale,tcl.char_col_decl_length, char_length,
tcm.table_name,
tcm.comments tab_comments
from user_tab_columns tcl
left join user_col_comments cc on tcl.TABLE_NAME=cc.table_name
left join user_tab_comments tcm on cc.table_name=tcm.table_name
order by cc.table_name,column_id;
标签:
原文地址:http://www.cnblogs.com/jcz1206/p/4578746.html