如题,想要对非sys租户的表根据行数做个过滤,但是非分区表查不到,老师能解答下吗 内核是4.0
1 个赞
select a.object_name as table_name,b.row_cnt
from dba_objects a,__all_table_stat b
where a.object_id=b.table_id
and a.object_name=‘t111’
and a.object_type=‘table’;
说明:
1、object_name替换成自己需要查的表名,
2、如果__all_table_stat表的 last_analyzed 值表示最近释放搜集过统计信息,如果不准,可以收集统计信息后再次查询。
3、手动收集统计信息方法:
https://www.oceanbase.com/docs/community-observer-cn-10000000000902235