NULL in CREATE TABLE

Поиск
Список
Период
Сортировка
От Arcady Genkin
Тема NULL in CREATE TABLE
Дата
Msg-id 87wvkql4pe.fsf@tea.thpoon.com
обсуждение исходный текст
Список pgsql-novice
According to specifications at
http://www.postgresql.org/docs/user/sql-createtable.htm "CREATE TABLE"
command should accept "NULL" specifier, but I get a parse error every
time I try to use it... "NOT NULL" works just fine.

,----[ Snippage from psql session ]
| antipode=> create table tmp_table ( a char(3) null, b char(4) not null);
| ERROR:  parser: parse error at or near "null"
| antipode=> create table tmp_table ( a char(3) not null, b char(4) not null);
| CREATE
`----

Is this a known problem or is something wrong on my side? I'm running
Postgres 6.5.3 on FreeBSD 4-S.

Thanks!
--
Arcady Genkin                                 http://www.thpoon.com
Nostalgia isn't what it used to be.

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

Предыдущее
От: Bob Cregan
Дата:
Сообщение: Error on loading
Следующее
От: Will Smith
Дата:
Сообщение: opening old database