Re: exclusive OR possible within a where clause?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: exclusive OR possible within a where clause?
Дата
Msg-id 9898.1318549799@sss.pgh.pa.us
обсуждение исходный текст
Ответ на exclusive OR possible within a where clause?  (David Salisbury <salisbury@globe.gov>)
Ответы Re: exclusive OR possible within a where clause?
Список pgsql-general
David Salisbury <salisbury@globe.gov> writes:
> Short version, is there a way to implement an exclusive OR in a where clause?

The boolean <> operator will do the trick.

    (x = y) <> (a = b)

            regards, tom lane

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

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: Error: timestamp with timezone + interval is not immutable while creating index
Следующее
От: René Fournier
Дата:
Сообщение: Re: PostGIS: Approximating a house number from street address range