Softerra LDAP Administrator HelpShow AllHide All

CHAR_LENGTH

The function returns the number of symbols in the specified string expression.

Syntax

CHARACTER_LENGTH (string_expression)

or

CHAR_LENGTH (string_expression)

Arguments

string_expression - can be a constant, attribute or result of the function that returns a string.

Examples

The following example searches for all users whose otherTelephone attribute is less then 6 digits.

SELECT $otherTelephone FROM ROOTDSE 
WHERE EXISTS $otherTelephone AND CHARACTER_LENGTH($otherTelephone)<6;