MySql数据库优化(3)

MySQL索引优化 如何选择何使的列建立索引 在where从句,group by 从句,order by 从句,on从句中出现的列 索引字段越小越好 离散度大的列放到联合索引的前面 问个问题:selet  * from payment where staff_id=2 and customer_id=584; 这条语句中,是index(sftaff_id,customer_id)好还是(custo
相关文章
相关标签/搜索