Returns the byte length of a string.
Syntax
LENGTH(str)Example
Enter values below to update the example in real time.
name→byte_len→customers→-- 이름 바이트 수 기준 긴 이름 조회
SELECT name, LENGTH(name) AS byte_len
FROM customers
ORDER BY byte_len DESC
LIMIT 10;