Subject | Re: [firebird-support] Ordered result from selectable stored procedure |
---|---|
Author | Ann W. Harrison |
Post date | 2006-10-05T17:35:46Z |
Rick Debay wrote:
Ordering the result set requires producing all the results and
sorting them. If you don't know what the data is, how exactly are
you supposed to find the smallest or largest?
Regards,
Ann
>Yes, that's right.
> If the results from a selectable stored procedure are ordered, then all
> results are retrieved from the procedure before the first result can be
> processed. If the results are not ordered, then the first result will
> be available after the selectable SP executes SUSPEND.
>
Ordering the result set requires producing all the results and
sorting them. If you don't know what the data is, how exactly are
you supposed to find the smallest or largest?
Regards,
Ann