This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nms-nmsweb/sql/nms数据库初始化/SQL_查询树形结构.txt
2018-09-27 16:21:05 +08:00

4 lines
293 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

查询以564节点开始的及其所有的子节点往下查
select t.*, t.rowid from xt_mk_jbxx t start with id=564 connect by prior id=pid;
查询以276节点及其所有的父亲节点 往上查
select t.*, t.rowid from xt_mk_jbxx t start with id=276 connect by prior pid=id;