摘要:
http://blog.sina.com.cn/s/blog_676015470100ntvw.htmlconnect by prior 是结构化查询中用到的,其基本语法是:select ... from tablename start with 条件1connect by prior 条件2where 条件3;例:select * from tablestart with org_id = 'AAA'connect by prior org_id = parent_id;简单说来是将一个树状结构存储在一张表里,比如一个表中存在两个字段:org_id,parent_id那么通过 阅读全文