Hi.
I came across serious problem.
There is hierarchy among groups listed below like directory structure.

     A(group)---------B(group)
                     |
                  -----C(group) --------D(group)
                                          |
                               ----E(group)
                              |
                               ----F(group)

I want to delete A group. This requires deletion of all child groups.
Above figure is a little simple but if this tree grows large that's my
problem.

Would you please tell me the answer?

For reference table is like this.

Field           Type            
groupname       varchar(50)
groupno         int
p_groupno       int             <- This means parent group no.

Thanks in advance!!

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to