`
ruijf
  • 浏览: 69738 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics