首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

not exists不能单单理解为差集

2012-08-01 
not exists不能仅仅理解为差集要看以谁为主表,见如下示例,同样的表,主表不一样,结果不一样:??select * fro

not exists不能仅仅理解为差集

要看以谁为主表,

见如下示例,同样的表,主表不一样,结果不一样:

?

?

select * from [left]  lwhere not exists (select * from [right] rwhere l.name=r.name)-------------------------------下面这个例子充分说明,not exists不能单单理解为差集select * from [right]  rwhere not exists (select * from [left] lwhere l.name=r.name)
?

?

?

?

?

?

?

热点排行