RE: [INTERFACES] Case insensitive LIKE ?

Поиск
Список
Период
Сортировка
От Ansley, Michael
Тема RE: [INTERFACES] Case insensitive LIKE ?
Дата
Msg-id 1BF7C7482189D211B03F00805F8527F748C1E1@S-NATH-EXCH2
обсуждение исходный текст
Список pgsql-interfaces
Hi, Constantin,

I'll be very surprised if you can get the whole lot to work without using
IFs.  Access is markedly non-SQL compliant.  It pushes the term 'extended
sub-set' to the limit, both the 'extended', and the 'sub' bits.  I work with
Access and Oracle at work, and everything has to either be done for Access,
or Oracle.  Not to appear negative or anything...

I have just tried Access now, and it doesn even know what % is.  It seems to
hand the like clause to the underlying engine for evaluation, when I tried
it with an Oracle linked table, it was quite happy, case-sensitive and all.
With a native Access table, it wasn't interested in the slightest.
So, that might point to a difference in the ODBC drivers' implementation and
handling of regexes.

MikeA


-----Original Message-----
From: Constantin Teodorescu
To: Hannu Krosing
Cc: PostgreSQL Interfaces
Sent: 99/10/31 02:30
Subject: Re: [INTERFACES] Case insensitive LIKE ?

Hannu Krosing wrote:
> 
> Constantin Teodorescu wrote:
> >
> > Is there for PostgreSQL a modifier(parameter) that will make the
LIKE
> > clause case insensitive ?
> 
> Maybe
> 
>  select * from t where lower(name) like 'john%';

Yes, it may work, but probably lower(name) won't work on ODBC->MS Access
...
I would like to preserve also the SQL commands betwen versions and not
to fill my program with IF's ..

-- 
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA

************


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [INTERFACES] Case insensitive LIKE ?
Следующее
От: Dave Page
Дата:
Сообщение: RE: [INTERFACES] Case insensitive LIKE ?