分区的信息是记录在information_schema.partitions 这个表里的。它不能直接定位行所在的分区,但它可查到每个分区中有多少行。

例子:

select partition_name as part,partition_expression as expr,partition_description as descr,table_rows from information_schema.partitions

where table_schema= schema() and table_name='t'
;

相关文章:

  • 2021-12-06
  • 2021-11-07
  • 2022-12-23
  • 2022-02-27
  • 2021-09-06
  • 2022-12-23
  • 2021-07-09
  • 2021-06-17
猜你喜欢
  • 2021-09-19
  • 2023-03-20
  • 2022-12-23
  • 2021-06-08
  • 2021-09-23
  • 2022-01-29
  • 2021-11-26
相关资源
相似解决方案