Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux