select a.name as parename ,b.name as chliname,a.typeId as paretype,b.typeid as chlitype from prodkind a inner join prodkind b where a.typeId=b.parentId ²é³öÀ´µÄ×Ö¶ÎÃû³Æ²»ÊÇ parename ¶øÊÇname
select name as parename ,(select name from prodkind where typeId='"+typeid+"') chilname, count(*)num from prodkind
select a.name as parename ,b.name as chliname,a.typeId as paretype,b.typeid as chlitype from prodkind a inner join prodkind b where a.typeId=b.parentId