使用MySQL我怎样才能使这个层次结构起作用?Parent的ID是100。这个Parent的ParentID是0。child的ID为101。ParentID为100。SubEntity的ID为105。ParentID为100。子实体的子实体的ID为106。它们的父实体ID为105。此查询将插入到iReport中。目前,子实体及其子实体不会汇总到父实体中。这就是我最终的结果:`SelectcasewhenFC.ParentType='PARENT'thenFC.FundCodewhenFB.ParentType='PARENT'thenFB.FundCodewhenF.ParentTyp