1.创建两张表
执行sql语句select * from test1 union SELECT * from test2结果
union对test1和test2相同的数据进行了去重处理
执行sql语句
select * from test1 union all SELECT * from test2
union all没有对相同数据进行去重处理
1.创建两张表
执行sql语句select * from test1 union SELECT * from test2结果
union对test1和test2相同的数据进行了去重处理
执行sql语句
select * from test1 union all SELECT * from test2
union all没有对相同数据进行去重处理