SQL 两张结构一样的表合并查询 .

select * from table1 union all select * from table2

union all 是所有的都显示出来;

select * from table1 union select * from table2

union 是只显示不重复的,如果两个表的字段部分相同,把查询的字段写出来亦可

原文地址:https://www.cnblogs.com/firstdream/p/5354558.html