分类: Oracle
2012-10-15 10:29:35
[sql] view plaincopyprint?
1. SELECT * FROM emp
2. WHERE sal < 1500
3. UNION
4. SELECT * FROM emp
5. WHERE sal BETWEEN 1000 AND 2000
6. ORDER BY 1;
2. union all:
[sql] view plaincopyprint?
1. SELECT * FROM emp
2. WHERE sal < 1500
3. UNION ALL ORACLE OCP
4. SELECT * FROM emp
5. WHERE sal BETWEEN 1000 AND 2000
6. ORDER BY 1;