有两张信息内容都不一样的表,要将它两个合并在一起查询得到两个表的所有数据。
3条回答 默认 最新
- 高辉杰' 2022-11-08 15:45关注
-- union 去重合并; union all 不去重 合并; select A,B,C,D,E from table1 union select A,B,C,D,E from table2
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
-- union 去重合并; union all 不去重 合并;
select A,B,C,D,E from table1
union
select A,B,C,D,E from table2