"Robert Song" <ro*********@mda-software.com> wrote in message
news:fb**************************@posting.google.c om...
Hi all
I am implementing a stored procedure which needs to recursively call
itself until specific condition is reached, Could anyone give some
advice about that?
Thanks a lot
Robert Song
One caveat is that the limit to the number of recursive calls to a procedure
is 32, that is, the count of the initial call and the subsequent recursive calls
must not be greater than 32. If you can't guarantee respecting this upper bound,
iteration might be the way to go. Even if you can, iteration might still be more
efficient than recursion. However, if you can guarantee not exceeding the
magic number 32 and the procedure is more clear recursively than
iteratively, then I'd go that way.
--
JAG