SQL JOIN - WHERE clause vs. ON clause

前端 未结 19 1582
深忆病人
深忆病人 2020-11-21 11:56

After reading it, this is not a duplicate of Explicit vs Implicit SQL Joins. The answer may be related (or even the same) but the question is diffe

19条回答
  •  死守一世寂寞
    2020-11-21 12:43

    I think it's the join sequence effect. In the upper left join case, SQL do Left join first and then do where filter. In the downer case, find Orders.ID=12345 first, and then do join.

提交回复
热议问题