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
请问这样的语名要怎么写了
------解决方案--------------------
- SQL code
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
------解决方案--------------------
- SQL code
select * from aunion all --加all不去重,直接union去重!select * from b
------解决方案--------------------
select * from a
union all
select * from b
------解决方案--------------------