Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: Databricks SQL
Databricks Runtime
Returns the byte length of string data or number of bytes of binary data.
Syntax
octet_length(expr)
Arguments
expr
: A STRING or BINARY expression.
Returns
An INTEGER.
Examples
> SELECT octet_length('Spark SQL');
9
> SELECT octet_length('μμΈμ');
9