scalar

LENGTH

Counts characters in PostgreSQL text; byte-count behavior differs in other engines. Example target: PostgreSQL 17. No tables or extensions required.

Formal Syntax & Structure

sql syntaxsql
LENGTH(text)

Working Example

Example Snippetsql
SELECT length('سلام');
SQL Reference