constraint expression

Поиск
Список
Период
Сортировка
От 2004@niederland.com (Roger Niederland)
Тема constraint expression
Дата
Msg-id 89683d03.0408061714.4ed01320@posting.google.com
обсуждение исходный текст
Ответы Re: constraint expression  (Kris Jurka <books@ejurka.com>)
Список pgsql-general
Hello,

I am having problems adding a simple expression to a table level
constraint.
Here is an example of one which postgresql 7.4.3 does not accept.

create table test (a int, b int, c int,
constraint aname check (((a=0) and (b is not null)) or ((a=1) and (c
is not null)));

Should this work?  It is complaining 'ERROR:  syntax error at or near
";" at character 126'

Thanks

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

Предыдущее
От: Chris Travers
Дата:
Сообщение: Re: Is olap possible on postgresql????
Следующее
От: Thiemo Kellner
Дата:
Сообщение: Error >>syntax error<< at >>$1<< at character 53