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

Spread the love

CHARACTER_LENGTH() –

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

Syntax –

CHARACTER_LENGTH(string)

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