首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

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

2012-11-20 
不用In 从A表中查出B表中没有的记录select * from effort e left outer join(select ue.effId id from use

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

热点排行