X
XUEPING8
Unregistered / Unconfirmed
GUEST, unregistred user!
MAIN表字段:SKTNO,JYBH,................
TEMP1表字段:SKTNO,JYBH,.................
两表通过以上两字段关联,MAIN表中记录435条,TEMP1表中记录:437条.
查询语句:SELECT * FROM TEMP1 WHERE SKTNO NOT IN (SELECT SKTNO FROM MAIN) AND JYBH NOT IN (SELECT JYBH FROM MAIN)查不到任何结果,但已经通过关联查到差的记录.为何?
TEMP1表字段:SKTNO,JYBH,.................
两表通过以上两字段关联,MAIN表中记录435条,TEMP1表中记录:437条.
查询语句:SELECT * FROM TEMP1 WHERE SKTNO NOT IN (SELECT SKTNO FROM MAIN) AND JYBH NOT IN (SELECT JYBH FROM MAIN)查不到任何结果,但已经通过关联查到差的记录.为何?