书写顺序
select[distinct]
from
join(如left join)
on
where
group by
having
union
order by
limit
执行顺序
from
on
join
where
group by
having
select
distinct
union
order by
本文详细介绍了SQL查询的书写与执行顺序,包括从简单的SELECT语句到复杂的JOIN操作,并解释了DISTINCT、WHERE、GROUP BY、HAVING、UNION、ORDER BY和LIMIT等关键字的使用时机与位置。
select[distinct]
from
join(如left join)
on
where
group by
having
union
order by
limit
from
on
join
where
group by
having
select
distinct
union
order by
1211
1514
2293
243

被折叠的 条评论
为什么被折叠?