OCTET_LENGTH()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
See LENGTH().
USAGE
OCTET_LENGTH(string)
Argument Name | Description |
---|---|
| The string to measure |
EXAMPLES
SELECT OCTET_LENGTH('mariadb');
+-------------------------+
| OCTET_LENGTH('mariadb') |
+-------------------------+
| 7 |
+-------------------------+
SELECT OCTET_LENGTH(' ');
+---------------------+
| OCTET_LENGTH(' ') |
+---------------------+
| 3 |
+---------------------+
SELECT OCTET_LENGTH(_utf8 x'E28098');
+-------------------------------+
| OCTET_LENGTH(_utf8 x'E28098') |
+-------------------------------+
| 3 |
+-------------------------------+