bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL CHAR_LENGTH() Function

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind MySQL CHAR_LENGTH() Function?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___ CHAR_LENGTH("SQL Tutorial") AS LengthOfString;
3Order

Put the learning moves in the order that makes the concept easiest to apply.

The CHAR_LENGTH() function return the length of a string (in characters).
Definition and Usage
MySQL CHAR_LENGTH() Function

Example

SELECT CHAR_LENGTH("SQL Tutorial") AS LengthOfString;

Definition and Usage

The CHAR_LENGTH() function return the length of a string (in characters).

Note

This function is equal to the CHARACTER_LENGTH() function.

Syntax

CHAR_LENGTH(
string
)

Parameter Values

ParameterDescription
stringRequired. The string to count the length for

Technical Details

Works in:From MySQL 4.0

Previous

MySQL ASCII() Function

Next

MySQL CHARACTER_LENGTH() Function