select * from temp where ssn not in (select distinct ssn from temp inner join
tamp where ssn,code_dars not in(select ssn,code_dars from temp));
错误1064(42000):您的SQL语法错误;检查手册中 对应于你的MySQL服务器版本使用附近的正确语法“code_dars 不是(SSN选择,从临时code_dars))”第3行为什么这个查询是假的?
我希望你的错别字不是问题? – 2011-04-20 19:27:21
此表在加入时是“tamp”还是“temp”? – 2011-04-20 19:32:31
其中一个是temp,另一个是tamp – 2011-04-20 20:00:31