SELECT CHARSET(USER()); : CHARSET « Information Functions « MySQL Tutorial






mysql>
mysql> SELECT CHARSET(USER());
+-----------------+
| CHARSET(USER()) |
+-----------------+
| utf8            |
+-----------------+
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());