mysql:
select a.footer_id from footer a, cons b where a.footer_id <> b.footer_id这样子不知道行不行?楼主试试看。
select a.footer_id from footer a, cons b where a.footer_id <> b.footer_id这样子不知道行不行?楼主试试看。
调试欢乐多
晕S,2 楼的写法毫无意义的啊,差不多是一个 迪卡尔 乘积的结果啊。
----------------
我也不喜欢用LEFT JION,效率不好.可毕竟可以先把问题解决掉.
我也想知道别的好方法.waiting....
不知道写对了没有,没有测试
用<>那个是不行的。
left join / not exists / not in 都是可以的,以前有过一样的帖子
select footer.footer_id from footer where not exists
(select footerid from cons where footerid=footer.footer_id)