August 5, 2003 at 2:59 pm
i have a table
------------------------
id name parentid
------------------------
1col1NULL
2col21
3col31
4col42
5col52
6col63
7col74
what would be the easiest way to get a list of all child ids for an id.
for eg. for id = 1, i would need the the child ids as 2,3,4,5
and the levels deep can be dynamic.
Thanks
August 5, 2003 at 3:00 pm
small correction
for eg. for id = 1, i would need the the child ids as 2,3,4,5,6
and the levels deep can be dynamic.
August 5, 2003 at 3:33 pm
check this link...it has a discussion (and a solution) on something on the same lines...
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply