日期:2014-05-17 浏览次数:20912 次
select * from (
select t.*,level lv from ecm_message t
start with t.msg_id='16'
connect by prior t.msg_id=t.parent_id
union
select t.*,level from ecm_message t
start with t.msg_id='16'
connect by t.msg_id= prior t.parent_id) tt
where tt.lv<>1
;