select
sum(table_rows )
from information_schema.partitions where
table_schema = schema()
and table_name='test';
和 我直接 select count(*) from test;两个的表的记录不一致啊。 查错了吗?
还有是 有的分区里面的数据 跟我直接带条件进行查询也不一致。 为什么?
...全文
2086打赏收藏
表分区后 一张表的数据统计跟 直接进行表查询数据不一致
select sum(table_rows ) from information_schema.partitions where table_schema = schema() and table_name='test'; 和 我直接 select count(*) from test;两个的表的记录不一致啊。 查错了吗? 还有是 有的分区里面的数据 跟我直接带条件进行查询也不一致。 为什么?