親測SQL left join on 和 where 效率,sqljoin

來源:互聯網
上載者:User

親測SQL left join on 和 where 效率,sqljoin

最近看到很多前輩都用了left join on,於是在網上查了好久,感覺說的不大對勁,於是,親測了一下。雖然不嚴謹,但是,已經反映一般規律了。

親測SQL  left join on 和 where 效率

紀念一下自己測試的結果:


where 用了1點多秒

下面是left join ,只有0點幾秒,十倍差距啊。資料量只有幾萬條,估計資料量幾千萬時,差別就更大了。


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.