Subqueries vs joins

前端 未结 14 2011
闹比i
闹比i 2020-11-22 16:10

I refactored a slow section of an application we inherited from another company to use an inner join instead of a subquery like:

WHERE id IN (SELECT id FROM          


        
14条回答
  •  天涯浪人
    2020-11-22 17:00

    Optimizer didn't do a very good job. Usually they can be transformed without any difference and the optimizer can do this.

提交回复
热议问题