I think the part that's biting you is the fact that you're trying to use the database recursively. Many (most?) database interfaces let you have only one active statement at a time, so once you go down a level, you're effectively destroying the resultset of the caller. I'd suggest one of two ways to work around it:
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Recursive program
by roboticus
in thread Recursive program
by newtoperl101
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |