我想知道以下两个查询中 JOIN 行为的区别。
例如,假设我有一个查询
SELECT *
FROM table1 t1
LEFT JOIN table2 t2
ON t1.column1 = t2.column2
AND t2.something = 'this thing'
WHERE some other conditions
SELECT *
FROM table1 t1
LEFT JOIN table2 t2
ON t1.column1 = t2.column2
WHERE some other conditions AND t2.something = 'this thing'
我无法想象通过将条件从 join 语句删除到 where 子句会产生什么不同。