MySQL Tutorial/String Functions/CHARSET
Версия от 13:44, 26 мая 2010; (обсуждение)
To produce a string in a given character set, use the optional USING clause:
mysql>
mysql>
mysql> SELECT CHARSET(CHAR(0x65)), CHARSET(CHAR(0x65 USING utf8));
+---------------------+--------------------------------+
| CHARSET(CHAR(0x65)) | CHARSET(CHAR(0x65 USING utf8)) |
+---------------------+--------------------------------+
| binary | utf8 |
+---------------------+--------------------------------+
1 row in set (0.08 sec)
mysql>
mysql>