那么 union all 与 union 如果它业务数据容许出现重复的记录,我们更推荐使用 union all,因为 union 去重数据需要遍历、排序和比较,它更耗时,更消耗 cpu 资源,但是数据结果更完整。