查询 某ID 所有的子孙包含自己:
select * from tableName t start with t.pid = ‘2c948a836b4f94b4016b5000c386014b‘ or t.id = ‘2c948a836b4f94b4016b5000c386014b‘ connect by t.pid = prior t.id
原文地址:https://www.cnblogs.com/qing-xia/p/11024467.html
时间: 2024-10-12 02:59:49