简体   繁体   中英

What is the precedence of the `COLLATE` operator?

What is the precedence of the COLLATE operator? 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? Is that section that says "All other operators" ?

As so often, the PostgreSQL documentation delivers:

The COLLATE clause binds tighter than operators; parentheses can be used when necessary.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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