摘要: 一、如何选择合适的列建立索引 在where从句,group by从句,order by从句,on从句中出现的列 索引字段越小越好 离散度大的列放到联合索引的前面 explain select * from payment where staff_id=2 and customer_id=584; - 阅读全文
posted @ 2020-05-28 16:18 kosamino 阅读(807) 评论(0) 推荐(0) 编辑