求一个sql语句,查一个节点所有的祖先节点 select * from table where id in (select pid from table where id=50)不知是不是楼主要的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 SQL> select * from t; ID PID---------- ---------- 20 10 30 20 40 30 50 40已用时间: 00: 00: 00.20SQL> select * from t start with id=50 connect by prior pid=id; ID PID---------- ---------- 50 40 40 30 30 20 20 10已用时间: 00: 00: 00.20SQL> select id fromselect t.*,level from t start with id=50 connect by prior pid=id)where level > 1 oracle对现有大表进行分区 临时表on commit delete rows 在哪下载SQL Plus工具? 请问这个触发器如何写? 我已经想了一天了,搞的头疼,有点晕,中午也没吃饭 请教一条统计产量的SQL语句 关于数据库转移问题?谢谢! oracle management server不能启动 Oracle中用什么函数可以将字符型转换成数值型 连接速度慢,15秒才能连上Oracle9i.(第三贴) 学习Oracle和SQL哪一个更容易点 关于在linux下定期自动备份ORACLE的问题? 如何实现rownum和order by 的问题???
---------- ----------
20 10
30 20
40 30
50 40已用时间: 00: 00: 00.20SQL> select * from t start with id=50 connect by prior pid=id; ID PID
---------- ----------
50 40
40 30
30 20
20 10已用时间: 00: 00: 00.20
SQL>
select t.*,level from t start with id=50 connect by prior pid=id
)
where level > 1