Condition within JOIN or WHERE

后端 未结 9 1776
无人共我
无人共我 2020-11-22 10:16

Is there any difference (performance, best-practice, etc...) between putting a condition in the JOIN clause vs. the WHERE clause?

For example...

-- C         


        
9条回答
  •  孤城傲影
    2020-11-22 11:12

    WHERE will filter after the JOIN has occurred.

    Filter on the JOIN to prevent rows from being added during the JOIN process.

提交回复
热议问题