关于mysql中innodb的count优化问题分享 一般采用二级索引去count:比如:id是pkaid是secondaryindex采用selectcount(*)fromtablewhereid>=0;或selectc count优化