1. 程式人生 > >MySQL的書寫順序和執行順序

MySQL的書寫順序和執行順序

書寫順序

select[distinct]
from
join(如left joinon
where
group by
having
union
order by
limit

執行順序

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