SELECT SUM(TABLE_ROWS) AS 数据总条数 FROM information_schema. PARTITIONS WHERE TABLE_SCHEMA = SCHEMA () AND TABLE_NAME = '表名';