简体   繁体   English

`COLLATE` 运算符的优先级是什么?

[英]What is the precedence of the `COLLATE` operator?

What is the precedence of the COLLATE operator? COLLATE运算符的优先级是什么? For example, in the following:例如,在下面:

SELECT 'a' || 'B' COLLATE someting

I believe in this particular case it is interpreted as:我相信在这种特殊情况下,它被解释为:

SELECT 'a' || ('B' COLLATE something)

But is there a listing of the exact rules on where the COLLATE keyword falls in?但是是否有关于COLLATE关键字所在位置的确切规则列表? Is that section that says "All other operators" ?那个部分是说“所有其他运营商”吗?

As so often, the PostgreSQL documentation delivers:通常, PostgreSQL 文档提供:

The COLLATE clause binds tighter than operators; COLLATE子句比运算符绑定得更紧密; parentheses can be used when necessary.必要时可以使用括号。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM