Subject | RE: [ib-support] Case sensitivity drives me crazy |
---|---|
Author | Martijn Tonies |
Post date | 2001-12-20T13:17:31Z |
Hi,
the best (and fastest) way to do this, is to keep a shadow column on the
columns you want to search.
For example:
CUSTOMERS
(
NAME varchar(30),
UP_NAME varchar(30)
)
triggers, before update and before insert:
BEGIN
new.UP_NAME = UPPER(NAME);
END
Then, search like:
SELECT * FROM CUSTOMERS
WHERE UP_NAME = 'MA%'
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com
[Non-text portions of this message have been removed]
the best (and fastest) way to do this, is to keep a shadow column on the
columns you want to search.
For example:
CUSTOMERS
(
NAME varchar(30),
UP_NAME varchar(30)
)
triggers, before update and before insert:
BEGIN
new.UP_NAME = UPPER(NAME);
END
Then, search like:
SELECT * FROM CUSTOMERS
WHERE UP_NAME = 'MA%'
>What is the best way to do fast search by first name or last name etc?Martijn Tonies
>
>Interbase or Firebird does not use index if you uppercase(firstName).
>
>This is driving me crazy.
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com
[Non-text portions of this message have been removed]