sql中主要关键字的执行顺序

  from  
  on  
  join  
  where  
  group by  
  having  
  select  
  distinct  
  union  
  order by

注:根据以上结果可制定SQL优化方案

原文地址:https://www.cnblogs.com/taosheng-yijiu/p/13500860.html