不用In 从A表中查出B表中没有的记录

来源:互联网 发布:传奇人物数据库修改 编辑:程序博客网 时间:2024/05/13 14:42

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;

原创粉丝点击