1) 分表之后统计数据的总量
SELECT (a0.total + a1.total + a2.total + a3.total + a4.total + a5.total + a6.total + a7.total) total FROM ( ( SELECT count(*) AS total FROM wx_00 ) a0, ( SELECT count(*) AS total FROM wx_01 ) a1, ( SELECT count(*) AS total FROM wx_02 ) a2, ( SELECT count(*) AS total FROM wx_03 ) a3, ( SELECT count(*) AS total FROM wx_04 ) a4, ( SELECT count(*) AS total FROM wx_05 ) a5, ( SELECT count(*) AS total FROM wx_06 ) a6, ( SELECT count(*) AS total FROM wx_07 ) a7 );