SQL请教
查询两个表中不同的,not EXISTS
以下两个语句有什么不同?第二个语句是正确的。bsperson.jz这里有什么问题?
select distinct jz,lb from bsperson where not EXISTS (select chuqin.jz,chuqin.lb [color=#FF0000]from chuqin,bsperson where chuqin.jz=bsperson.jz and chuqin.lb=bsperson.lb[/color])
select distinct jz,lb from bsperson where not exists (select jz,lb [color=#FF0000]from chuqin where chuqin.jz=bsperson.jz and chuqin.lb=bsperson.lb[/color])