oracle 中 union与union all 的区别

 

union是两个查询结果的并集,可是去掉重复的数据。
union all是两个查询结果的并集。
因为union比union all多一步操做,所以效率上会有所下降。
另外,union会对查询结果作排序。
相关文章
相关标签/搜索