webCOMAND

LENGTH()

Returns the number of bytes in a string or blob.  Multibyte characters count as multiple bytes.

Prototype

int LENGTH(string str)

Parameters

  • str - String, blob or expression to evaluate to a string or blog.

Return

Number of bytes in the string or blob.

Example

SELECT OID, LENGTH(Username) AS UsernameLength FROM User

Related

CHAR_LENGTH()