一条sql 话语

一条sql 语句
table1 factory1

id name1

table2 factory2

id name2


找出 2表不重复记录



------解决方案--------------------
select * from factory2 A where not exists(select * from factory1 B where A.id =B.id and A.name2=B.name1)