To union or union all, that is the question

前端 未结 5 1311
有刺的猬
有刺的猬 2021-02-20 16:38

I have two queries that I\'m UNIONing together such that I already know there will be no duplicate elements between the two queries. Therefore, UNION a

5条回答
  •  忘了有多久
    2021-02-20 17:25

    Since there will be no duplicates from the two use UNION ALL. You don't need to check for duplicates and UNION ALL will preform the task more efficiently.

提交回复
热议问题