表结构
 id     序号
 parentid  父序号
 name    名称
 depth    深度
 idpath   路径
------------------
大家可能见过这样的表结构,我现在想查找一个子节点到根节点中的所有记录,如何写?