MySQL Tutorial/Information Functions/COLLATION
Версия от 13:44, 26 мая 2010; (обсуждение)
COLLATION(str) returns the collation of the string argument.
mysql>
mysql> SELECT COLLATION("abc");
+-------------------+
| COLLATION("abc") |
+-------------------+
| latin1_swedish_ci |
+-------------------+
1 row in set (0.00 sec)
SELECT COLLATION(_utf8"abc");
mysql>
mysql>
mysql> SELECT COLLATION(_utf8"abc");
+-----------------------+
| COLLATION(_utf8"abc") |
+-----------------------+
| utf8_general_ci |
+-----------------------+
1 row in set (0.00 sec)