立即学习:https://edu.youkuaiyun.com/course/play/4364/77184?utm_source=blogtoedu
order by 有两种排序实现方式:
1. 利用有序索引获取有序数据(using index);
2. 文件排序(using filesort)。
注意:MySQL在查询时最多只能使用1个索引。
立即学习:https://edu.youkuaiyun.com/course/play/4364/77184?utm_source=blogtoedu
order by 有两种排序实现方式:
1. 利用有序索引获取有序数据(using index);
2. 文件排序(using filesort)。
注意:MySQL在查询时最多只能使用1个索引。