| От | Scott Marlowe |
|---|---|
| Тема | Re: Making field non case sensitive |
| Дата | |
| Msg-id | dcc563d10904050853y30516722y2ee3208fe0dcbb5@mail.gmail.com обсуждение |
| Ответ на | Making field non case sensitive (Félix Sánchez Rodríguez <fesanch@ciego.cult.cu>) |
| Список | pgsql-admin |
2009/4/5 Félix Sánchez Rodríguez <fesanch@ciego.cult.cu>: > Greetings: > > I need to be able to establish which fields of my tables are and which are > not case sensitive. Is it possible?? How?? In what way, in how you refer to them or in how you compare them? PostgreSQL has no built in case-insensitive types, but there is an addon for citext or something like it that makes a case insensitive type. Or you can make a case insensitive index and use that. create table mytable (id int, field x int, fieldy int, field1 text); create index mytable_field1 on mytable ((lower(field))); select * from mytable where lower(field)='abc';
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера