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