摘要: 一、分组查询 1.语法:select 列名 from 表名 group by 列名; 2.举例:各个部门总工资:select deptno, ename , avg(sal) from emp group by deptno ; 3.对行筛选用where, 对组筛选用having 4.举例:各个部门 阅读全文
posted @ 2021-08-16 13:55 Brack_Pearl 阅读(644) 评论(0) 推荐(0) 编辑