3中select mysql
简单查询simple:不涉及链接 sql
select、from、where、group by、having、order by oracle
复杂查询complex:多遍链接 函数
复合查询compound:union\union all相交、相减、相加 ci
聚合函数中null不参与聚合统计. it
select * from city limit 10,3;表示查询十一、十二、13这3条数据. io
group_concat()用‘,’链接一个字段。通常用在分组,也能够没有group by 那就是一个分组了. select
with rollup:为分组汇总。 rollup
cube:(oracle有,mysql没有) nio
union (去重) union all没有
union/union all后的order by 和limit是对union后的结果进行的order by 和 limit。