LEN

Description

Returns the length of a string (LEN in Transact-SQL).

Sample Source Pattern

Syntax

LEN( string_expression )

Examples

Code:

IN -> SQLServer_01.sql
SELECT LEN('Sample text') AS [LEN];

Output:

LEN|
---+
 11|

Last updated