不用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;