完整的select语句
select distinct *
from 表名
where ...
group bu ... having ... #集合分组
order bu ...
limit star,count
执行顺序为:
from 表名
where...
扫描二维码关注公众号,回复:
7453410 查看本文章
group by ...
select distinct *
having...
order by ...
limit star,count