Hi I have the following Hierarchical Query. May I know how to include the start with pc.Parent=”abc” in the result too?
select pc.child
from parentChild pc
start with pc.Parent="abc"
connect by nocycle prior pc.child = pc.parent;
I’m using the above query to update all the child + start with parent values.
update person set ..... where person.id in (select pc.child
from parentChild pc
start with pc.Parent="abc"
connect by nocycle prior pc.child = pc.parent)
May I know if there is a more effective way to update all the children and itself?
I’m considering taking out the list of children and updating them individually using hibernate.
Please share your suggestion 😀 thanks
A possible solution without inserting “parent,null child” values is using dual