oracle 中 union與union all 的區別

 

union是兩個查詢結果的並集,可是去掉重複的數據。
union all是兩個查詢結果的並集。
因爲union比union all多一步操做,所以效率上會有所下降。
另外,union會對查詢結果作排序。
相關文章
相關標籤/搜索