PHP8.1.21版本已发布
vue8.1.21版本已发布
jquery8.1.21版本已发布

MySQL如何显示字符长度

PHPz
PHPz 转载
2023-05-27 13:47:28 1377浏览

字符长度

命令:select char_length('andyqan')。

作用: 显示指定字符长度。

应用场景: 查看字符长度时。

例子:

<a style='color:#f60; text-decoration:underline;' href="https://m.php.cn/zt/15713.html" target="_blank">mysql</a>> select char_length(&#39;andyqian&#39;);
+-------------------------+
| char_length(&#39;andyqian&#39;) |
+-------------------------+
|   8 |
+-------------------------+
1 row in set (0.00 sec)
声明:本文转载于:亿速云,如有侵犯,请联系admin@php.cn删除