经典sql语句

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

posted @ 2011-09-27 08:16  匆匆夏日  阅读(147)  评论(0编辑  收藏  举报