COLLATION
Return the collation of a string. This function outputs the name of the collation rule used for sorting and comparing the string argument.
Syntax
COLLATION(str)Description
Examples
SELECT COLLATION('abc');
+-------------------+
| COLLATION('abc') |
+-------------------+
| latin1_swedish_ci |
+-------------------+
SELECT COLLATION(_utf8'abc');
+-----------------------+
| COLLATION(_utf8'abc') |
+-----------------------+
| utf8_general_ci |
+-----------------------+See Also
Last updated
Was this helpful?

