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
2342
May 05, 2012 03:36PM
1327
May 06, 2012 11:56AM
1279
May 12, 2012 04:23AM
1187
May 12, 2012 11:02AM
1320
May 12, 2012 12:02PM
1419
May 13, 2012 09:53AM
1183
May 13, 2012 11:38AM
1329
May 13, 2012 11:32AM
1224
May 13, 2012 02:39PM
1282
May 14, 2012 07:47PM
1193
May 15, 2012 01:19AM
1220
May 16, 2012 07:24AM
1541
May 16, 2012 08:45AM
1146
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.