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