Re: How to create unique constraint on NULL columns

Поиск
Список
Период
Сортировка
От Michael Schmidt
Тема Re: How to create unique constraint on NULL columns
Дата
Msg-id BAY101-DAV12809A20C96F25A74A08D1A3D30@phx.gbl
обсуждение исходный текст
Ответ на How to create unique constraint on NULL columns  ("Andrus" <eetasoft@online.ee>)
Список pgsql-general
I was faced with a similar issue.  One suggestion I got from the Internet was to create a shadow column that contains the values used in the Index, with a dummy entry (in my case, the string <NULL>) for those records in which the primary column is NULL.  It works well for my app.

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

Предыдущее
От: Garrett Kalleberg
Дата:
Сообщение: foreign key constraints and inheritence
Следующее
От: Ron Mayer
Дата:
Сообщение: Re: Converting MySQL tinyint to PostgreSQL