union

select * from aa

1	1
2	2

select * from bb

1	1
2	4
11	11


select * from aa union select * from bb

1	1
2	2
2	4
11	11

select * from aa union all select * from bb

1	1
2	2
1	1
2	4
11	11

猜你喜欢

转载自xiangjie88.iteye.com/blog/2298138