摘要: 转自:http://dev.firnow.com/course/7_databases/oracle/oraclexl/20081124/152550.html<!--[endif]-->我们用一张简单的表COMP_INFO来存储单位信息,包含上下级隶属关系,如下三列,分别为单位ID,单位名称,上级单位ID:CREATE TABLE COMP_INFO( COMP_ID VARCHAR... 阅读全文
posted @ 2010-06-13 09:58 catch22 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 转自:http://space.itpub.net/12361284/viewspace-129059做了个实验总结一下connect by树查询的用法:SQL> select * from t_dept_temp; DEPT_ID PARENT_ID DEPT_NAME AMOUNT---------- ---------- ---------- ---------- 1 1 2 2 1 ... 阅读全文
posted @ 2010-06-13 09:50 catch22 阅读(294) 评论(0) 推荐(0) 编辑