1、left join 跟 where 不是一回事!不能比较 2、from a,b where a.id = b.id 等价于 from a inner join b on a.id = b.id 3、inner join 是内连接,结果中包含被连接的表共有的记录 left join是左连接,结果中包含第一个表的全部记录 他们将产生不同的结果,虽然有时看起来一样
1、left join 跟 where 不是一回事!不能比较 2、from a,b where a.id = b.id 等价于 from a inner join b on a.id = b.id 3、inner join 是内连接,结果中包含被连接的表共有的记录 left join是左连接,结果中包含第一个表的全部记录 他们将产生不同的结果,虽然有时看起来一样----------------------------- Right They are not the same.
2、from a,b where a.id = b.id
等价于
from a inner join b on a.id = b.id
3、inner join 是内连接,结果中包含被连接的表共有的记录
left join是左连接,结果中包含第一个表的全部记录
他们将产生不同的结果,虽然有时看起来一样
2、from a,b where a.id = b.id
等价于
from a inner join b on a.id = b.id
3、inner join 是内连接,结果中包含被连接的表共有的记录
left join是左连接,结果中包含第一个表的全部记录
他们将产生不同的结果,虽然有时看起来一样-----------------------------
Right
They are not the same.
因此是有可对比性的