Mysql union和union all的区别

liulsky / 2023-06-02 / 原文

  1. union去重并排序,union all直接返回合并的结果,不去重也不排序;
  2. union all比union性能好;