mysql count()和Max()的优化,子查询,limit
 select count(*),count(id) from tables

count(*) 会查询空行,count(id) 不会查询空行


mysql count()和Max()的优化,子查询,limit
 
mysql count()和Max()的优化,子查询,limit

如果payment-_date 没有建立索引
mysql count()和Max()的优化,子查询,limit

 

如果创建了索引


mysql count()和Max()的优化,子查询,limit
 
mysql count()和Max()的优化,子查询,limit
 
 

 


 

相关文章: