| От | Scott Marlowe |
|---|---|
| Тема | Re: PRIMARY KEY on a *group* of columns imply that each |
| Дата | |
| Msg-id | 1114612616.13303.1285.camel@state.g2switchworks.com обсуждение |
| Ответ на | Re: PRIMARY KEY on a *group* of columns imply that each column is NOT (Stephane Bortzmeyer <bortzmeyer@nic.fr>) |
| Ответы |
Re: PRIMARY KEY on a *group* of columns imply that each column is NOT
|
| Список | pgsql-general |
On Wed, 2005-04-27 at 09:06, Stephane Bortzmeyer wrote: > On Wed, Apr 27, 2005 at 05:19:32AM +0000, > Patrick TJ McPhee <ptjm@interlog.com> wrote > a message of 37 lines which said: > > > but you should know that in SQL, unique constraints don't apply to > > rows containing null values > > May be I should but I didn't. > > > your table definition will be as you want it, but the constraint you > > want won't be there. > > OK, I will try to write a custom trigger, then. Often the best bet here, btw, is to declare it not null then use something other than null to represent null, like the text characters NA or something.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера