Search the MySQL manual:

8.3.9 COLLATE Clause Precedence

The COLLATE clause has high precedence (higher than ||), so the expression

x || y COLLATE z

is equivalent to:

x || (y COLLATE z)

User Comments

Add your own comment.