| От | elein@varlena.com (elein) |
|---|---|
| Тема | Re: null constraints and defaults |
| Дата | |
| Msg-id | 20050629204646.GG7997@varlena.com обсуждение |
| Ответ на | Re: null constraints and defaults (Matt Miller <mattm@epx.com>) |
| Ответы |
Re: null constraints and defaults
|
| Список | pgsql-general |
Thanks. I understand that much. I want to know if this is the intended behaviour. --elein On Wed, Jun 29, 2005 at 08:25:09PM +0000, Matt Miller wrote: > On Wed, 2005-06-29 at 13:04 -0700, elein wrote: > > default constraint > > ... > > elein=# insert into nulldefault values (NULL); > > ERROR: null value in column "one" violates not-null constraint > > I think the idea of a DEFAULT value is to tell the DB what to supply > only if you omit the column from the insert statement altogether. If > you deliberately call for a NULL, the DB will try to oblige. >
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера