Subject | Re: Stored procedure - variables for FIRST x SKIP y?? |
---|---|
Author | Alexander V.Nevsky |
Post date | 2003-10-27T18:56:54Z |
--- In firebird-support@yahoogroups.com, dhay@l... wrote:
parameter for First reasonably greater value and 0 in parameter to
Skip. But perhaps using additional flag for IF statement and having
two branches of logic and statements you'll get more effective code.
Best regards,
Alexander.
>will get
> Thanks, Alexander!
>
> Does anyone know if I can pass in values to FIRST X SKIP Y, which
> all the records? ie sometimes I want to limit them, at other timesI want
> them all?David, if you know approximately size of the cursor, you can pass in
parameter for First reasonably greater value and 0 in parameter to
Skip. But perhaps using additional flag for IF statement and having
two branches of logic and statements you'll get more effective code.
Best regards,
Alexander.