2 different small query vs 1 query with subquery

前端 未结 4 1246
无人及你
无人及你 2021-01-04 05:04

I have table like this

name       | personal_number 
-----------------------------------------
Jon        | 222
Alex       | 555
Jon        | 222
Jimmy               


        
4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-04 05:27

    It seems that subqueries are very slow as mentioned in this article http://www.mysqlperformanceblog.com/2010/10/25/mysql-limitations-part-3-subqueries.

    You should try to avoid having subqueries and use joining instead.

提交回复
热议问题