Subject | Re: [firebird-support] Re: BETWEEN Operator Inclusive? |
---|---|
Author | James |
Post date | 2004-03-23T00:16:08Z |
Hi
Ivan Prenosil wrote:
between 'A' and 'D' from NAME >= 'A' and NAME < 'D' I have try this in
my database it seems to give me a similar result. Which one could use
index to execute faster?
Regards,
james
Ivan Prenosil wrote:
> > BETWEEN is inclusive, it is just that 'DA' > 'D'. Hence, in your caseI have been following this thread. What is the difference between NAME
> > I would use something like
> >
> > Select * from TABLE
> > Where NAME Between 'A' and 'DZZZZZZZZZZZZZZZZZZZZZZZZZZZ'
>
> ... which will not work with national characters.
>
> Better use
> NAME >= 'A' AND NAME <'D'
>
between 'A' and 'D' from NAME >= 'A' and NAME < 'D' I have try this in
my database it seems to give me a similar result. Which one could use
index to execute faster?
Regards,
james