Loading lesson path
Concept visual
Start at both ends
Return the length of the string, in bytes:
SELECT LENGTH("SQL Tutorial") AS LengthOfString;The LENGTH() function returns the length of a string (in bytes).
string )
Required. The string to count the length for
From MySQL 4.0
Return the length of the text in the "CustomerName" column, in bytes:
FROM Customers;❮ MySQL Functions