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‘
时间: 2024-10-18 13:14:30