CHARSET(str): Returns the character set of the string argument. : CHARSET « Information Functions « MySQL Tutorial






mysql>
mysql> SELECT CHARSET('abc');
+----------------+
| CHARSET('abc') |
+----------------+
| latin1         |
+----------------+
1 row in set (0.00 sec)

mysql>








20.3.CHARSET
20.3.1.CHARSET(str): Returns the character set of the string argument.
20.3.2.SELECT CHARSET(CONVERT('abc' USING utf8));
20.3.3.SELECT CHARSET(USER());