Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind MySQL SECOND() 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.
___ SECOND("2017-06-20 09:34:00.000023");3Order
Put the learning moves in the order that makes the concept easiest to apply.
The SECOND() function returns the seconds part of a time/datetime (from 0 to 59).
Definition and Usage
MySQL SECOND() Function
Example
SELECT SECOND("2017-06-20 09:34:00.000023");Definition and Usage
The SECOND() function returns the seconds part of a time/datetime (from 0 to 59).
Syntax
SECOND(
datetime
)Parameter Values
| Parameter | Description |
|---|---|
| datetime | Required. The time or datetime to extract the second from |
Technical Details
| Works in: | From MySQL 4.0 |
|---|