xiaolizi007
11/25/2016 - 7:47 AM

union(并集)EXCEPT(差集) intersect(交集)

union(并集)EXCEPT(差集) intersect(交集) #sqlserver

 ----------------------------------------------------集合操作--------------------------------------
--union(并集)EXCEPT(差集) intersect(交集) 
select * from test2 where idcard like '411522%'
 
union all
 
select * from tc12306 where idcard like '411522%'