and id not in (select id from table1 m where m.a>20 and m.b>20)
select A.id,A.aaa,A.bbb,B.ccc,B.dddfrom A left join B
on A.id=B.id
union
select B.id,A.aaa,A.bbb,B.ccc,B.ddd
from A right join B
on A.id=B.id
欢迎分享,转载请注明来源:内存溢出
and id not in (select id from table1 m where m.a>20 and m.b>20)
select A.id,A.aaa,A.bbb,B.ccc,B.dddfrom A left join B
on A.id=B.id
union
select B.id,A.aaa,A.bbb,B.ccc,B.ddd
from A right join B
on A.id=B.id
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)