select * from tableA
union
select * from tableB
where not exists(select * from tableA where pk = tableB.pk)
or
select * from tableA
union
select * from tableB
where pk not in (select pk from tableA)
or use union all
回複:how to deal exist? 不搞的這麽複雜
所有跟帖:
• OK, I'll try. Thanks, vielen dank.Merci, תוד&# -奉旨灌水- ♀ (0 bytes) () 03/05/2013 postreply 20:25:40