ORACLE几个过滤条件的执行顺序

来源:互联网 发布:qt5编程入门霍亚飞pdf 编辑:程序博客网 时间:2024/05/20 06:23

select distinct id
  from table t
 where rownum < 10
 order by t.id desc;


上述语句的过滤条件执行顺序 先where --->order by --->distinct

如果有group by的话 group by 在order by前面的

原创粉丝点击