Re: doubts about a constraint's definition

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: doubts about a constraint's definition
Дата
Msg-id 12669.1048259523@sss.pgh.pa.us
обсуждение исходный текст
Ответ на doubts about a constraint's definition  ("enediel" <enediel@com.ith.tur.cu>)
Список pgsql-general
"enediel" <enediel@com.ith.tur.cu> writes:
> 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

CREATE UNIQUE INDEX foo ON tab (UPPER(column));

            regards, tom lane

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

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