Re: operator precedence (was: How to use like with a list)

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: operator precedence (was: How to use like with a list)
Дата
Msg-id 4EC6C734.9070407@hogranch.com
обсуждение исходный текст
Ответ на Re: How to use like with a list  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
On 11/18/11 12:47 PM, John R Pierce wrote:
> does ~ have higher expression priority than || or something?

speaking of...

the precedence table [1] seems somewhat short of operators...  the regex
operators like ~ ~* etc aren't on there, nor is string concatenation ||
...   I'd expect the regex pattern ops like ~ should be with the LIKE
etc pattern matching, but apparently they are lumped in with 'everything
else' resulting in the anomalous behavior noted in the referenced thread...



[1]
http://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-PRECEDENCE



--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast


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

Предыдущее
От: "David Johnston"
Дата:
Сообщение: Re: How to use like with a list
Следующее
От: Jerry Sievers
Дата:
Сообщение: Re: CLONE DATABASE (with copy on write?)