Re: Make a column case insensitive

Поиск
Список
Период
Сортировка
Искать
От
Rod Taylor
Тема
Re: Make a column case insensitive
Дата
Msg-id
1091993235.799.15.camel@jester
Ответ на
Список
Дерево обсуждения
Make a column case insensitive "Gordon Ross" <G.Ross@ccw.gov.uk>
Re: Make a column case insensitive Rod Taylor <pg@rbt.ca>
Re: Make a column case insensitive Jan Wieck <JanWieck@Yahoo.com>
Re: Make a column case insensitive Pierre-Frédéric Caillaud<lists@boutiquenumerique.com>
Re: Make a column case insensitive Tom Lane <tgl@sss.pgh.pa.us>
On Fri, 2004-08-06 at 11:29, Gordon Ross wrote:
> Is it possible to make a column case insensitive, without having to pepper your SELECTs with lots of lower() function calls (and forgetting to do it at times !)

You could make yourself a set returning function to do this job -- but
that is probably just as difficult to remember when selecting data out
of the table.

create function abc(text) returns set of tab as 'select * from tab where
col = lower($1);' language sql;

select * from abc('sEaRcH_VaLuE');



В списке pgsql-sql по дате отправления
От: Kenneth Gonsalves
Дата:
Сообщение: Re: surrogate key or not?
От: Thomas Wegner
Дата:
FAQ