length
function
Applies to: Databricks SQL
Databricks Runtime
Returns the character length of string data or number of bytes of binary data. This function is a synonym for character_length function and char_length function.
Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
clause (TABLE)mask
clauseROW FILTER
clauseAtualizado 18/02/2025
length
function Applies to: Databricks SQL
Databricks Runtime
Returns the character length of string data or number of bytes of binary data. This function is a synonym for character_length function and char_length function.
An INTEGER.
The length of string data includes the trailing spaces. The length of binary data includes trailing binary zeros.