LENGTH

Computes the length (number of characters) of a text string

Description

The LENGTH() function is used to determine the length of a text string, which is the count of characters in the string. It's a useful function for tasks such as validating input lengths or extracting substrings of specific lengths.

Syntax

LENGTH(text)

  1. text: The input text string for which you want to calculate the length.

Example

Table

ID
Text

1

Hello, World!

2

Example

3

Savant

Function

LENGTH(`Text`)

Results

LENGTH (integer)

13

7

6

Last updated