Syntax
CHARSET(str)
Purpose
You can call this function to return the character set used by the str string.
Examples
obclient> SELECT CHARSET("oceanbase");
+-----------------------+
CHARSET("oceanbase")
+-----------------------+
utf8mb4
+-----------------------+
1 row in set (0.00 sec)
obclient> SELECT CHARSET(CONVERT("oceanbase" USING binary));
+--------------------------------------------+
CHARSET(CONVERT("oceanbase" USING binary))
+--------------------------------------------+
binary
+--------------------------------------------+
1 row in set (0.01 sec)