CHAR_LENGTH()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
Returns the number of characters in the given string, counting each multi-byte char as 1 character.
EXAMPLES
SELECT CHAR_LENGTH(_utf8 x'E28098');
+------------------------------+
| CHAR_LENGTH(_utf8 x'E28098') |
+------------------------------+
| 1 |
+------------------------------+
SELECT CHAR_LENGTH('m a r i a db');
+-----------------------------+
| CHAR_LENGTH('m a r i a db') |
+-----------------------------+
| 12 |
+-----------------------------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.