CHARACTER_LENGTH() – Find the Length of a String in MySQL

Spread the love


The CHARACTER_LENGTH() function returns length of a string in MySQL.

Syntax –


string – The string for which you want to count the length

Example –

SELECT CHARACTER_LENGTH("I am learning SQL") AS LengthOfString;

Rating: 1 out of 5.

Leave a Reply