Difference between UNION ALL and UNION

Difference between UNION ALL and UNION

 

  • UNION: Performs a union operation on two result sets, excluding duplicate rows, and performs sorting by default rules.
  • UNION ALL: Perform a union operation on two result sets, including duplicate rows, without sorting.

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326941612&siteId=291194637