20

做类似的事情有区别吗

SELECT * 
FROM table1 INNER JOIN table2 ON table2.ObjectId = table1.table2ObjectId 
WHERE table2.Value = 'Foo'

对比

SELECT * 
FROM table1 INNER JOIN table2 
ON table2.ObjectId = table1.table2ObjectId AND table2.Value = 'Foo'
4

1 回答 1

7

不是内部连接。外连接是放置会产生影响的地方。

于 2013-08-09T18:53:41.350 回答