select aa.id,b,c from (select id,b from temp1) aa left join (select id,d from temp2) bb on aa.id=bb.id where b <> d 这个句子有问题么?测试是where b <> d有问题,结果是空,明明有符合条件的呀
发表于:2008-01-14 14:47:021楼 得分:0
修改:select aa.id,b,c from (select id,b from temp1) aa left join (select id,c from temp2) bb on aa.id=bb.id where b <> c c可能是null