Re: problem with check constraints

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: problem with check constraints
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C2029B5FB1@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на problem with check constraints  (Anton Andreev <antonandreev@fmi.uni-sofia.bg>)
Список pgsql-general
Anton Andreev wrote:
> When I create a check constraint in PgAdmin3 1.8.4 on a Postgresql
> 8.3.3: ((A and B) or (C and D))
> I get with create script: (A and B or C and D) which is wrong.

No, it isn't - both are the same.

AND has higher operator precedence than OR, see
http://www.postgresql.org/docs/8.3/static/sql-syntax-lexical.html#SQL-PRECEDENCE-TABLE

Yours,
Laurenz Albe

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

Предыдущее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: Re: Drupal and PostgreSQL - performance issues?
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: how to remove the duplicate records from a table