`

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


Kay 2007-09-03 15:58 发表评论
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics