首先你两张表有什么关联么?
如果没有关联并且你只是想要相同字段的数据的话,下面的sql可以满足:
a).
--自动去掉A,B表中相同的数据
select same_col from Aunionselect same_col from B
b).
--去A,B表的最大并集
select same_col from Aunion allselect same_col from B