2020-02-21
阅读量:
539
sql执行顺序
问:
group by 和 where 并用时 select 语句的执行顺序是怎么样
答:
筛选了之后再分组,运行完 where 子句再运行 group by 子句。
group by 和 where 并用时 select 语句的执行顺序:
from →where → group by → select
书写顺序和 RDBMS 内部执行顺序不相同。






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论