Home  >  Article  >  Database  >  How to display character length in MySQL

How to display character length in MySQL

PHPz
PHPzforward
2023-05-27 13:47:281587browse

Character length

Command: select char_length('andyqan').

Function: Display the specified character length.

Application scenario: When checking the character length.

Example:

mysql> select char_length('andyqian');
+-------------------------+
| char_length('andyqian') |
+-------------------------+
|   8 |
+-------------------------+
1 row in set (0.00 sec)

The above is the detailed content of How to display character length in MySQL. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete