Path of entry in hierarchical table
I have a table with tree fields: ID, ParentID and Name
I'm in need of a function/procedure that can return the path of a certain row.
Say I have the following rows:
ID ParentID Name
1 NULL Root
2 1 Temp
3 1 Folder
4 2 SubItem
If I input ID 4 into the function/procedure I would like it to return "/Root/Temp/SubItem/".
I have been experimenting and googling all night without finding a solution.
How would I go about making such a function or procedure?
Subject
Views
Written By
Posted
Path of entry in hierarchical table
2513
May 05, 2012 03:36PM
1423
May 06, 2012 11:56AM
1370
May 12, 2012 04:23AM
1276
May 12, 2012 11:02AM
1421
May 12, 2012 12:02PM
1510
May 13, 2012 09:53AM
1271
May 13, 2012 11:38AM
1405
May 13, 2012 11:32AM
1304
May 13, 2012 02:39PM
1368
May 14, 2012 07:47PM
1284
May 15, 2012 01:19AM
1314
May 16, 2012 07:24AM
1622
May 16, 2012 08:45AM
1229
May 15, 2012 11:27AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.