Skip to content

LEN

  • string: The input string of which the length is to be determined. The LEN() function will return the number of characters in the string.
SELECT LEN('Hello World');
11

The LEN function is used to get the length of a string in SQL. In the given example, the string is ‘Hello World’ which has a length of 11.