Oracle中拼出树型结构

select * from 表名 start with(主键='0') connect by prior 主键=父主键
表中须存在一条主键为0的记录

例如:
select  *  from t_ser_problem_define start with (problem_guid = '0') connect by prior problem_guid = parent_problem_guid
posted @ 2007-09-03 15:58  樊凯  阅读(433)  评论(0编辑  收藏  举报