| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера