Mysql把多个查询语句查到的结果显示在一起

需要将结果合并到一起显示出来,这个时候

就需要用到union和union all关键字来实现这样的功能,union和union all的主要区别是union all是把结果集直接合并在一起,而

union 是将union all后的结果镜像一次distinct,去除重复的记录后的结果。

原文地址:https://www.cnblogs.com/liyhbk/p/14648317.html