Re: when to use NULL and when to NOT NULL DEFAULT ''

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: when to use NULL and when to NOT NULL DEFAULT ''
Дата
Msg-id 200410081207.26607.peter_e@gmx.net
обсуждение исходный текст
Ответ на when to use NULL and when to NOT NULL DEFAULT ''  (Miles Keaton <mileskeaton@gmail.com>)
Ответы Re: when to use NULL and when to NOT NULL DEFAULT ''  (Terry Lee Tucker <terry@esc1.com>)
Re: when to use NULL and when to NOT NULL DEFAULT ''  (David Garamond <lists@zara.6.isreserved.com>)
Список pgsql-general
Am Freitag, 8. Oktober 2004 07:22 schrieb Miles Keaton:
> What's the prevailing wisdom & best-practice advice about when to let
> a varchar (or any) column be NULL, and when to make it NOT NULL
> DEFAULT '' (or '0000-00-00' or whatever) - in PostgreSQL?

Briefly, you always do the first and never do the second.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

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

Предыдущее
От: David Garamond
Дата:
Сообщение: Re: 8.0 questions
Следующее
От: Terry Lee Tucker
Дата:
Сообщение: Re: when to use NULL and when to NOT NULL DEFAULT ''