Re:

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re:
Дата
Msg-id 12016.1028689949@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ...  (<steven_pannel@yahoo.com>)
Список pgsql-novice
<steven_pannel@yahoo.com> writes:
> why does the following generate an error in postgresql 6.5?

> create table test2(city varchar(35) NULL );
> ERROR:  parser: parse error at or near "null"

NOT NULL is in the SQL specification.  NULL is not (it's the default
behavior and so they saw no need to specify it explicitly).

More recent versions of PG will take NULL, for compatibility with
certain not-very-standards-aware commercial products.  But leave it
out and you'll be happy.

            regards, tom lane

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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: File size limit on pg_dumpall
Следующее
От: "Robin"
Дата:
Сообщение: Locked out of postgres on my redhat 7.3