有時候要改改表字段的某些精度,可能一多就不肯定是否改全了,Oracle支持搜索table,字段,對象等統計信息

 select a.owner, a.table_name, b.column_name,b.data_precision || ',' ||b.data_scale
      from dba_tables a, dba_tab_columns b, dba_objects c
     where a.owner = b.owner
       and a.table_name = b.table_name
       and a.table_name = c.object_name
       --and a.owner in ('XXX') --用戶可選
       --and b.data_type in ('VARCHAR2','CHAR','NCHAR','NCLOB','NVARCHAR2','NUMBER','DATE','TIMESTAMP%','FLOAT')
       and c.object_type = 'TABLE'
       and  upper(b.column_name) like '%BG_NUM%'
       order by a.owner,a.table_name,b.column_id;
       ci

相關文章
相關標籤/搜索