--A,B表的结构一样吗?如果一样,可以用下面这条语句select * from a
union
select * from b 
where styleID not in (select styleID from a)