Oracle SQL

start with....connect by 递归查询树状SQL

Select * from t_tree
 where UPPER(is_display) = 'ON'
 start with p_node_id =1 --当前节点ID
 connect by prior node_id = p_node_id
 and level <= 1 --(从父往子递归只查询一级子节点)
 order SIBLINGS by display_order

posted @ 2013-02-21 16:35  寂静沙滩  阅读(191)  评论(0编辑  收藏  举报