■ UNION Returns the combined rows from two queries, sorting them and removing duplicates.
■ UNION ALL Returns the combined rows from two queries without sorting or removing duplicates.
■ INTERSECT Returns only the rows that occur in both queries’ result sets,sorting them and removing duplicates.
■ MINUS Returns only the rows in the first result set that do not appear in the second result set, sorting them and removing duplicates.
The only place where an ORDER BY clause is permitted is at the end of the compound query.only once;
阅读(1199) | 评论(0) | 转发(0) |