MySQL:in與join的優化

原sql:mysql mysql> select count(*) as num from gp as p where p.goods_id in (select goods_id from gg where gg.category_id = 62) and p.status=1 AND p.is_check=1 AND p.is_stop=0 AND p.stock > 0 LIMIT 1;
相關文章
相關標籤/搜索