Name

length — Return the length of a string.

Syntax

length(string, width)
              

The LENGTH function has the following argument:

string

The string to measure the length of.

Description

Returns the number of characters in the string, including all leading and trailing white space.

Examples

Formula

Description

Result

length('foobar')

Return the length of 'foobar'

6

length(' foobar ')

Return the length of ' foobar '

8