Re: How to enforce uniqueness when NULL values are present?

Поиск
Список
Период
Сортировка
От Christian Schröder
Тема Re: How to enforce uniqueness when NULL values are present?
Дата
Msg-id 45FBB30C.8080404@deriva.de
обсуждение исходный текст
Ответ на How to enforce uniqueness when NULL values are present?  (Christian Schröder <cs@deriva.de>)
Список pgsql-general
Thank you for your tips. I think I will change the tables and use some
minimal date instead of a null value to represent a constraint that is
valid all the time. An additional advantage of this approach is that I
can then make sure that the time intervals (I not only have a start
date, but also an end date) don't overlap.
Nevertheless, I think that there are some examples where a null value
does not exactly mean "unknown". But this is beyond the scope of this
discussion.

Regards,
    Christian

--
Deriva GmbH                         Tel.: +49 551 489500-42
Financial IT and Consulting         Fax:  +49 551 489500-91
Hans-Böckler-Straße 2                  http://www.deriva.de
D-37079 Göttingen

Deriva CA Certificate: http://www.deriva.de/deriva-ca.cer


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

Предыдущее
От: Bertram Scharpf
Дата:
Сообщение: Re: PgSql on Vista?
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: Creation of a read-only role.