2014-03-12 35 views

回答

0

這個查詢應該做

select * from emp where id not in(select distinct(id) from address); 
+0

感謝SREE ....這工作。任何其他方法?只是爲了知識。 – user3408958

+0

是的!它的工作原理,但嘗試避免子查詢,如果你可以實現你的目標沒有子查詢。 – AK47

1
select * from emp as e 
left join address as a on e.id=a.id 
where a.id is null 
相關問題