Subject | Re: [firebird-support] no suspend on select stored procedure? |
---|---|
Author | Woody (TMW) |
Post date | 2004-12-12T20:39:33Z |
>is
> I've had people in here tell me that using a stored procedure that selects
> records without a "suspend" command at the end will not return records or
> incorrect syntax. I'm not saying you're all wrong but I just came acrossan
> example in my application where this is obviously proving that axiom to beYour procedure only returns one record so it acts more like a "function".
> incorrect.
Whenever you are only returning one set of values, it is not necessary to
use SUSPEND. It is only needed when looping through to return more than one
set of data. However, and someone can correct me if I'm wrong, if by chance
the select ever results in more than one record, it will error.
Woody (TMW)