Re: Is this logical?

Поиск
Список
Период
Сортировка
От Lincoln Yeoh
Тема Re: Is this logical?
Дата
Msg-id 5.2.1.1.1.20060911001247.02e46888@localhost
обсуждение исходный текст
Ответ на Is this logical?  ("Behrang Saeedzadeh" <behrangsa@gmail.com>)
Список pgsql-general
At 01:12 AM 9/10/2006 +0330, Behrang Saeedzadeh wrote:

>Hi,
>
>Shouldn't this create statement trigger an error?
>
>  create table bar (col1 int not null default null);

No.

>Shouldn't I be forbidden to insert null values into a non null column?

Yes.

Use "not null default null" when you want to force apps/people etc to
explicitly specify values when inserting.

Link.


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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: Reinstall problem of PostgreSQL in Windows XP
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: pg_dump and cluster