Re: case insensitive database ?
| От | Joel Burton |
|---|---|
| Тема | Re: case insensitive database ? |
| Дата | |
| Msg-id | Pine.LNX.4.21.0104241822290.22793-100000@olympus.scw.org обсуждение исходный текст |
| Ответ на | case insensitive database ? (Thorsten Mauch <mauch@imkenberg.de>) |
| Список | pgsql-novice |
On Wed, 25 Apr 2001, Thorsten Mauch wrote: > Is it possible to setup a database that is case insensitive ? > is it also possible with a multbyte database ? AFAIK, no, it's not possible to set up a case-insensitive database. We're very into sensitivity in this community. :-) Some possibilities: the ILIKE operator does case insensitive searching, as does the case insensitive regex operator (~*). search using lower() or upper(). select * from pers where lower(fname) = 'joel'; (to speed these up, you can index pers on lower(fname)!) "\h create index" for help have two fields, fname and fname_lower, with a trigger to copy lower(fname) to fname_lower on update. Good luck! HTH, -- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
В списке pgsql-novice по дате отправления: