Filtering using the JOIN instead of WHERE

前端 未结 6 1095
别那么骄傲
别那么骄傲 2021-01-11 16:49

In SQL (MSSQL, Oracle, etc., whatever), when joining tables, what is the gain from adding a filter to the JOIN statement instead of having it in the WHERE clause?

i.

6条回答
  •  情话喂你
    2021-01-11 17:05

    I sometimes do this in queries that have a lot of joins because it localises all the information about the join in one part of the query rather than having some in the join condition and some in the where clause.

提交回复
热议问题