mysql string length
snippet in sql

mysql string length

user2446

-- Relevant for MySQL only

-- syntax
LENGTH(<your-string>)

-- example
LENGTH('CountCharacters') -- OUTPUT: 15
        123456789012345

-- example with query 
SELECT 'CountCharacters',LENGTH('CountCharacters')
FROM DUAL;

-- OUTPUT: CountCharacters, 15

sql length

user5876

-- Relevant for MS SQL (SQL Server)
LEN('string')