oracle数据库sql语句之join实例讲解
程序员文章站
2022-09-17 19:50:10
--group by
select deptno,count(*) from emp group by deptno;
--group by ... having
selec...
--group by
select deptno,count(*) from emp group by deptno;
--group by ... having
select deptno, count(*) from emp group by deptno having count(*)>=5;
--join
select * from emp join dept on emp.deptno = dept.deptno;
--join right
select * from emp right join dept on emp.deptno = dept.deptno;
上一篇: 装修选烤漆门和免漆门的区别,别再掉坑里了
下一篇: 爱剪辑视频如何设置滴油漆转场特效?