| От | Andrus |
|---|---|
| Тема | Re: How to create unique constraint on NULL columns |
| Дата | |
| Msg-id | dbg5ji$2hei$3@news.hub.org обсуждение исходный текст |
| Ответ на | How to create unique constraint on NULL columns ("Andrus" <eetasoft@online.ee>) |
| Ответы |
Re: How to create unique constraint on NULL columns
|
| Список | 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. Michael, thank you. This is not working in my case. Uniquenes sis not sufficient: I need referential integrity with uniqueness. If I add <NULL> department, this must be added into department table also and pollutes this table. Andrus.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера