CHAR_LENGTH() – How to Find length of a string in MySQL?

Spread the love

CHAR_LENGTH() –

The CHAR_LENGTH() function returns the length of a string in SQL.

Syntax –

CHAR_LENGTH(string)

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

Example –

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

Rating: 1 out of 5.

Leave a Reply