select * from table1 union all select * from table2

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

select * from table1 union select * from table2

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

相关文章: