有时候要改改表字段的某些精度,可能一多就不确定是否改全了,Oracle支持搜索table,字段,对象等统计信息
2017-09-12 00:00
447 查看
摘要: http://www.cnblogs.com/litou/p/3926881.html
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;
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;
相关文章推荐
- 观察analyze table compute statistics 都对什么对象统计了信息
- 观察analyze table compute statistics 都对什么对象统计了信息
- oracle 对象统计信息
- Oracle 收集对象统计信息
- Oracle 锁定临时表统计信息及锁住后是否能用动态采集的hint
- Oracle 对象统计信息
- Oracle性能分析12:对象统计信息
- 观察analyze table compute statistics 都对什么对象统计了信息+user_tab_histograms中的endpoint_value
- Oracle确定过期的统计信息
- 更新oracle表的统计信息 GATHER_TABLE_STATS
- mysql、sqlServer、hsql、oracle、db2各数据库支持的字段类型与最大精度
- Oracle查看表中每个字段的统计信息脚本
- hibernate查询oracle字段,转化为对象字段,字段名确定
- 【转】 观察analyze table compute statistics 都对什么对象统计了信息
- Oracle获取表结构信息:表名、是否视图、字段名、类型、长度、非空、主键
- Oracle对象统计信息
- java获取sql,oracle的字段详细信息(字段类型,长度,精度)
- 【Oracle】查询字段的长度、类型、精度、注释等信息
- Oracle性能分析12:对象统计信息
- Oracle - EBS: SQL&PL/SQL 如何根据flag参数决定是否按照某些字段group分组