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
ÓÃRandomAccessFileдÈëTXTÎļþ²é¿´Ê±ÊÇÂÒÂ룬ÇëÎÊÓÐʲô·½·¨¿ÉÒÔд³É¿É¶ÁµÄÎļþ£¬²»ÊÇÓÃÆäËûµÄÎļþ²Ù×÷£¬¾ÍÊÇÖ»ÓÃRandomAccessFileµÄ·½·¨ÊÇ·ñ¿ÉÒÔʵÏÖ£¿ Java code: import java.io.*; public class RandomAcce ......