Syntax
LENGTH(str)
Purpose
LENGTH() returns the length of str in bytes.
A multi-byte character is counted as multiple characters. For example, if you enter five two-byte characters, CHAR_LENGTH() returns 5, while LENGTH() returns 10.
Products
High-quality database products to meet full lifecycle enterprise data management needs.
Resources
Various types of resources about OceanBase and the database industry
Docs
Rich content to meet the content demands of using products and solving product usage problems
OceanBase Database
Download PDF
OceanBase, A Highly Scalable Database for Transactional, Analytical, and AI Workloads.
Resources
© OceanBase 2024. All rights reserved | Cloud Service Agreement | Privacy Policy | Legal | Security
LENGTH(str)
LENGTH() returns the length of str in bytes.
A multi-byte character is counted as multiple characters. For example, if you enter five two-byte characters, CHAR_LENGTH() returns 5, while LENGTH() returns 10.