Re: [INTERFACES] Data Search

Поиск
Список
Период
Сортировка
От Ed Loehr
Тема Re: [INTERFACES] Data Search
Дата
Msg-id 386A3087.4F04426D@austin.rr.com
обсуждение исходный текст
Ответ на Data Search  (Robert Hiltibidal <rob@y2k.state.il.us>)
Список pgsql-interfaces
> Both databases have a mixture of upper and lowercase characters. Is there a
> way to tell postgres to consider a match if the absolute character is the
> same regardless of case?
>
> Ex
> 'ROB' should also produce a hit if postgres encouters 'rob'
>

http://www.postgresql.org/docs/postgres/functions2470.htm

db=> create table t(s varchar);
CREATE
db=> insert into t values ('Joe');
INSERT 365513 1
db=> insert into t values ('JoE');
INSERT 365514 1
db=> insert into t values ('JOE');
INSERT 365515 1
db=> select * from t where s like 'joe';
s
-
(0 rows)

db=> select * from t where lower(s) like 'joe';
s
---
Joe
JoE
JOE
(3 rows)

Cheers,
Ed Loehr



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

Предыдущее
От: Robert Hiltibidal
Дата:
Сообщение: Data Search
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: [INTERFACES] manipulate array wiht ecpg