top of page
CerebroSQL

CHAR_LENGTH

База данных: MySQL

68747470733a2f2f7374796c65732e7265646469746d656469612e636f6d2f74355f32716d366b2f7374796c65

Syntax:
CHAR_LENGTH(str)

Returns the length of the string str, measured in characters. A
multibyte character counts as a single character. This means that for a
string containing five 2-byte characters, LENGTH() returns 10, whereas
CHAR_LENGTH() returns 5.

URL: https://dev.mysql.com/doc/refman/8.0/en/string-functions.html

Example

bottom of page