Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind MySQL SEC_TO_TIME() 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.
___ SEC_TO_TIME(1);3Order
Put the learning moves in the order that makes the concept easiest to apply.
The SEC_TO_TIME() function returns a time value (in format HH:MM:SS) based on the specified seconds.
Definition and Usage
MySQL SEC_TO_TIME() Function
Example
SELECT SEC_TO_TIME(1);Definition and Usage
The SEC_TO_TIME() function returns a time value (in format HH:MM:SS) based on the specified seconds.
Syntax
SEC_TO_TIME(
seconds
)Parameter Values
| Parameter | Description |
|---|---|
| seconds | Required. The number of seconds. Both positive or negative values are allowed |
Technical Details
| Works in: | From MySQL 4.0 |
|---|