Set NOT NULL error

Поиск
Список
Период
Сортировка
Искать
От
Michael Rowan
Тема
Set NOT NULL error
Дата
Msg-id
60C5D86D-9476-473D-A4B2-9A33958385D8@internode.on.net
Список
Дерево обсуждения
Set NOT NULL error Michael Rowan <mike.rowan@internode.on.net>
Re: Set NOT NULL error Andreas Kretschmer <akretschmer@spamfence.net>
This command run from the SQL window of pgAdmin3 results in an error:

In the table vehicle there is a column maker_id
There is no data in the table, it is newly created.

ALTER TABLE vehicle ADD CONSTRAINT maker_id SET NOT NULL;

ERROR: syntax error at or near "SET"

AKAICS thats a direct copy of the required command in the PostgreSQL 9.1 docs, so I wonder what provokes the error?


Michael Rowan
mike.rowan@internode.on.net

11 Kingscote Street
ALBERTON
South Australia 5014

tel 618 8240 3993



В списке pgsql-novice по дате отправления
От: Jane Geering
Дата:
Сообщение: Re: Access to pg_hba.conf
От: Andreas Kretschmer
Дата:
Сообщение: Re: Set NOT NULL error
FAQ