列的统计信息(转)

select /*+LEADING(((c b) a) t) use_nl(b) use_nl(a) use_nl(t) */
 b.table_name,
 t.partition_id,
 a.column_name,
 num_distinct,
 t.num_null,
 t.min_value,
 t.max_value
  from __all_virtual_column_statistic t,
       __all_virtual_column         a,
       __all_virtual_table          b,
       __all_virtual_database       c
 where t.tenant_id = a.tenant_id
   and t.table_id = a.table_id
   and t.column_id = a.column_id
   and a.tenant_id = b.tenant_id
   and a.table_id = b.table_id
   and b.tenant_id = c.tenant_id
   and b.database_id = c.database_id
   and c.tenant_id = 1001
   and c.database_name = 'SYS'
   and b.table_name = 'TESTTAB1';
   
   
+------------+--------------+----------------+--------------+----------+------------------------------+------------------------------+
| table_name | partition_id | column_name    | num_distinct | num_null | min_value                    | max_value                    |
+------------+--------------+----------------+--------------+----------+------------------------------+------------------------------+
| TESTTAB1   |            0 | __pk_increment |        99015 |        0 | 0A053FFF01                   | 0A053FFFA08D06               |
| TESTTAB1   |            1 | __pk_increme

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值