如果是两个表中都有一个id字段,求表a中有该id而表b中无该id的话一般不支持子查询也多能left join实现,如:select a.* from a left join b on(a.id=b.id) and b.id is null;
你这个要所有字段做对比,不象oracle有个minus比较简单,如果支持子查询的话,看看这个能否行:
select * from a where concat(a.col1,a.col2,a.col3...) not in(select concat(b.col1,b.col2.b.col3...) from b);
concat中要对应列出表中所有字段