两个没有任务 相同的字段的表如何合并
A表:
spmc ,spbm
a 01
b 02
c 03
B表
spmc , spbm
d 04
e 05
f 06
合成表 C:
spmc ,spbm
a 01
b 02
c 03
d 04
e 05
f 06
请问这样的语名要怎么写了
[解决办法]
select * from aunion allselect * from b
[解决办法]
select * from a
union all
select * from b
[解决办法]
select * from
(
select * from a
union all
select * from b
) c
[解决办法]
不去重复 union all
去重复 union
[解决办法]
select * from aunion all --加all不去重,直接union去重!select * from b
[解决办法]
select * from a
union all
select * from b
[解决办法]