LEN() Function in SQL Server

Rumman Ansari   Software Engineer   2023-03-25   5700 Share
☰ Table of Contents

Table of Content:


Syntax:


LEN(String_Expression)

Returns the count of total characters, in the given string expression, excluding the blanks at the end of the expression.

Code:


Select LEN('SQL Functions   ')

Output:

The above code will produce the following result-


13