How to execute UNION without sorting? (SQL)

前端 未结 10 594
猫巷女王i
猫巷女王i 2021-01-30 21:34

UNION joins two results and remove duplicates, while UNION ALL does not remove duplicates.
UNION also sort the final output.

W

10条回答
  •  抹茶落季
    2021-01-30 21:58

    1,1: select 1 from dual union all select 1 from dual 1: select 1 from dual union select 1 from dual

提交回复
热议问题