Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind MySQL CHARACTER_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.
___ CHARACTER_LENGTH("SQL Tutorial") AS LengthOfString;3Order
Put the learning moves in the order that makes the concept easiest to apply.
The CHARACTER_LENGTH() function return the length of a string (in characters).
Definition and Usage
MySQL CHARACTER_LENGTH() Function
Example
SELECT CHARACTER_LENGTH("SQL Tutorial") AS LengthOfString;Definition and Usage
The CHARACTER_LENGTH() function return the length of a string (in characters).
Note
This function is equal to the CHAR_LENGTH() function.
Syntax
CHARACTER_LENGTH(
string
)Parameter Values
| Parameter | Description |
|---|---|
| string | Required. The string to count the length for |
Technical Details
| Works in: | From MySQL 4.0 |
|---|