-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lsdir 性能优化 #159
Comments
一般,WHERE在前,GROUP BY在后,即先进行筛选,然后进行分组; HAVING只能跟在GROUP BY之后,对分组后的聚合结果进行筛选;HAVING的前提是分组;WHERE在最前,最先对原始数据进行一遍筛选; 作者:小甜瓜Melon |
当一个查询语句同时出现了where,group by,having,order by的时候,执行顺序和编写顺序是: 2.针对第1个结果集使用group by分组,返回第2个结果集。 3.针对第2个结果集中的每1组数据执行select xx,有几组就执行几次,返回第3个结果集。 5.针对第4个结果集排序。 |
文件夹名有 _ % 会被sql当成wildcard |
case insensitive: |
原来慢的不是sql,而是loop操作。
loop操作用了0.2s
The text was updated successfully, but these errors were encountered: