Subject | Re: Most efficient way to fetch next alphabetical row |
---|---|
Author | terriertech |
Post date | 2005-02-11T02:49:38Z |
--- In IBObjects@yahoogroups.com, Robert martin <rob@c...> wrote:
using this was that everything was originally designed for IB6 which
(if I recall correctly) did not understand "FIRST". I was hoping for
a method that did not break the backwards compatibility. However, FYI
I tried this and my speed problems go away, so it is certainly one
valid solution.
> I might be off track but I suspect the following would do the trickORDER BY
>
> SELECT FIRST 1 fullname FROM mnames WHERE fullname>'SMITH,JOHN' ORDER BY
> fname;
>
> SELECT FIRST 1 fullname FROM mnames WHERE fullname<'SMITH,JOHN'
> fnameHi Rob, I don't think you are off track. The main reason for us not
> DESC;
using this was that everything was originally designed for IB6 which
(if I recall correctly) did not understand "FIRST". I was hoping for
a method that did not break the backwards compatibility. However, FYI
I tried this and my speed problems go away, so it is certainly one
valid solution.