Subject | Re: Non Case Sensitive Search |
---|---|
Author | Adam |
Post date | 2005-08-14T05:55Z |
--- In firebird-support@yahoogroups.com, "ra8009" <ra8009@y...> wrote:
WHERE UPPER(FIRST_NAME) LIKE 'J%'
WHERE FIRST_NAME LIKE 'j%' OR FIRST_NAME LIKE 'J%'
I am not sure if the first method is able to use any index you may
have available on the First_Name field. FB 2 (alpha) allows you to
create an index that could be used in the first method.
Adam
> Is there a way to turn off case sensitivity when running a query withI can think of 2 ways
> a WHERE clause like this:
>
> WHERE FIRST_NAME LIKE('j%')
WHERE UPPER(FIRST_NAME) LIKE 'J%'
WHERE FIRST_NAME LIKE 'j%' OR FIRST_NAME LIKE 'J%'
I am not sure if the first method is able to use any index you may
have available on the First_Name field. FB 2 (alpha) allows you to
create an index that could be used in the first method.
Adam