当前位置:Gxlcms > 数据库问题 > oracle获取列的备注和数据类型

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

时间:2021-07-01 10:21:17 帮助过:4人阅读

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‘

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

标签:

人气教程排行