Топ-100
 

CHARSET

База данных: MySQL
Текст

Syntax:
CHARSET(str)

Returns the character set of the string argument.

URL: https://dev.mysql.com/doc/refman/8.0/en/information-functions.html

Пример

mysql> SELECT CHARSET('abc');
-> 'utf8'
mysql> SELECT CHARSET(CONVERT('abc' USING latin1));
-> 'latin1'
mysql> SELECT CHARSET(USER());
-> 'utf8'