- UNION eliminates any duplicate rows
- UNION ALL returns all rows including duplicate values
- UNION ALL is faster than UNION; Union’s duplicate elimination requires a sorting operation which takes time.
- Example
UNION ALL
SELECT * FROM table_B;
Java and Android Code Samples and Concepts Articles
No comments:
Post a Comment