Re: doubts about a constraint's definition

Поиск
Список
Период
Сортировка
От Peter Gibbs
Тема Re: doubts about a constraint's definition
Дата
Msg-id 030001c2efb6$bcbbb620$0b01010a@emkel.co.za
обсуждение исходный текст
Ответ на doubts about a constraint's definition  ("enediel" <enediel@com.ith.tur.cu>)
Список pgsql-general
enediel wrote:

> I need to create a column, where the information is conserved in the same
> way that it was written by the user, but the data of this column is unique
> if it's only taken to capital
>
> declaring a constraint
> ... unique(column name) is not enough to me  'cause
>
> 'ab'
> 'AB'
> 'aB'
> ....
> will be accepted
>

Create a unique functional index e.g.
create unique index index_name on table_name (upper(fieldname));
--
Peter Gibbs
EmKel Systems


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

Предыдущее
От: "enediel"
Дата:
Сообщение: Re: doubts about a constraint's definition
Следующее
От: "enediel"
Дата:
Сообщение: Re: doubts about a constraint's definition