最重要的是索引要合理 我知道的where date = '2011-5-2'不如where date between '2011-5-1 23:59:59' and '2011-5-3 0:0:0'前提 date 要建立索引 还有如果mobile是charwhere mobile = 13811111111不如where mobile = '13811111111'
这东西具体问题具体分析的,跟数据库设计也有很大关系,不仅仅是写查询语句的事。
可以看看我之前写的一篇关于这个的东西 http://www.jiajun.org/2009/12/25/high...