转:Oracle start with.connect by prior子句实现递归查询
个人转自:http://m.2cto.com/?src=http://www.2cto.com/database/201108/101766.html#m/http://www.2cto.com/database/201108/101766.htmlOracle start with.connect by prior子句实现递归查询 Oracle中的select语句可以用start with...connect by prior子句实现递归查询,connect by 是结构化查询中用到的,其基本语法是: select ... from where start with connect by ; :过滤条件,用于对返回的所有记录进行过滤。 :查询结果重起始根结点的限定条件。 :连接条件 数据组织结构如下图: 数据库表