Re: Table definitions using CHECK and DEFAULT

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Table definitions using CHECK and DEFAULT
Дата
Msg-id 10475.1004922251@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Table definitions using CHECK and DEFAULT  ("Matthew L. Wirges" <wirges@cerias.purdue.edu>)
Список pgsql-general
"Matthew L. Wirges" <wirges@cerias.purdue.edu> writes:
> address_type VARCHAR(30) DEFAULT 'unknown' NOT NULL CHECK(address_type
> IN ("unknown", "forged", "proxy", "temporary", "permanent"))
> gives the error:
> psql:IRDB_POSTGRES:69: ERROR:  Attribute 'unknown' not found

You must use single quotes not double quotes for literal strings.
Double-quotes are for names that don't follow standard identifier
rules.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Got error on CREATE TABLE AS (+Bug?)
Следующее
От: "Aasmund Midttun Godal"
Дата:
Сообщение: Re: newbie question