nested query vs jOINs

前端 未结 4 383
醉话见心
醉话见心 2021-01-12 14:08

whos could be much efficient if I use nestted subquery, JOINs Or maybe temp tables .. another question : in subqueries if i use IN Cl

4条回答
  •  死守一世寂寞
    2021-01-12 14:43

    Joins are far quicker than the other suggestions you made.

    Joins will perform the ON condition for every record whereas doing selects with a WHERE will pull in ALL records first, then perform the filter, thus being much slower.

    Joins all the way !!

提交回复
热议问题