把多个select的结果组合到一起
select deptno,ename
from emp
union
select deptno,dname
from dept
把多个select的结果组合到一起,保留重复项
select *
from emp
where sal<1000
union all
select *
from emp
where sal<1500
把多个select的结果组合到一起,并排序
select</
把多个select的结果组合到一起
select deptno,ename
from emp
union
select deptno,dname
from dept
把多个select的结果组合到一起,保留重复项
select *
from emp
where sal<1000
union all
select *
from emp
where sal<1500
把多个select的结果组合到一起,并排序
select</