不用In 从A表中查出B表中没有的记录
select * from effort e left outer join(select ue.effId id from user_effort ue where ue.userId=1) ut
on e.effId = ut.id where ut.id is null;
发布时间: 2012-11-20 09:55:43 作者: rapoo
不用In 从A表中查出B表中没有的记录
select * from effort e left outer join(select ue.effId id from user_effort ue where ue.userId=1) ut
on e.effId = ut.id where ut.id is null;