scalar
CHAR_LENGTH
Counts characters, not encoded bytes or grapheme clusters. Example target: PostgreSQL 17. No tables or extensions required.
Formal Syntax & Structure
sql syntaxsql
CHAR_LENGTH(text)Working Example
Example Snippetsql
SELECT char_length('سلام');