如下:
分组查询:
Select columnlist from table where condition
Group by columlist
例子:
在表em中按照部门编号dep 和职务job进行分组排序
Select dep,job from em group by dep,job order by dep;
如下:
分组查询:
Select columnlist from table where condition
Group by columlist
例子:
在表em中按照部门编号dep 和职务job进行分组排序
Select dep,job from em group by dep,job order by dep;