oracle获取列的备注和数据类型

select
column_name,
data_type,
data_precision,
data_scale,
nvl((select t_s.comments
from all_col_comments t_s
where t_s.column_name = t.column_name
and t_s.table_name ='ccr_company_fundamental'
),column_name)
comments
from all_tab_columns t
where
table_name = upper('ccr_company_fundamental')
and data_type='NUMBER'

posted on 2016-01-04 22:25  听哥哥的话  阅读(604)  评论(0编辑  收藏  举报

导航