SELECT goods_category_id ,count(*) FROM `sw_goods` group by goods_category_id 转载于:https://www.cnblogs.com/toward-the-sun/p/4036271.html