メインコンテンツまでスキップ
バージョン: Latest-3.4

length

この関数は文字列の長さをバイト単位で返します。

構文

INT length(VARCHAR str)

MySQL > select length("abc");
+---------------+
| length('abc') |
+---------------+
| 3 |
+---------------+

キーワード

LENGTH