oracle递归的SQL语句
时间: 2023-09-28 19:06:29 浏览: 107
ORACLE与SQLSERVER语法差异分析
引用\[2\]:Oracle版本的Sql如下: 比如一个表,有id和pId字段,id是主键,pid表示它的上级节点,表结构和数据请参考SqlServer2005的,Sql如下: --下面的Sql是查询出1结点的所有子结点 SELECT * FROM aaa START WITH id = 1 CONNECT BY pid = PRIOR id 。
#### 引用[.reference_title]
- *1* *3* [SQL中的递归的用法](https://blog.csdn.net/liyue071714118/article/details/119657683)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Sql语句里的递归查询](https://blog.csdn.net/pdn2000/article/details/6674243)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文