Oracle中拼出树型结构
select * from 表名 start with(主键='0') connect by prior 主键=父主键
表中须存在一条主键为0的记录
例如:
表中须存在一条主键为0的记录
例如:
select * from t_ser_problem_define start with (problem_guid = '0') connect by prior problem_guid = parent_problem_guid
浙公网安备 33010602011771号