经典sql语句

select b.*,(select count(a.id) from td_product a where a.protypeid=b.id) num from td_protype b

原文地址:https://www.cnblogs.com/shanlin/p/2192725.html