mysql をパーティション分けした場合,そのパーティションごとにどれほどの量が入っているかを見るためのコマンドを書く
-------------------------------------------
select partition_name, partition_ordinal_position,table_rows from information_schema.partitions where table_name ='tmp';'
-------------------------------------------
で確認することができる.