Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind MySQL 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.
___ TIME("19:30:10");3Order
Put the learning moves in the order that makes the concept easiest to apply.
The TIME() function extracts the time part from a given time/datetime.
Definition and Usage
MySQL TIME() Function
Example
SELECT TIME("19:30:10");Definition and Usage
The TIME() function extracts the time part from a given time/datetime.
Note
This function returns "00:00:00" if expression is not a datetime/time, or NULL if expression is NULL.
Syntax
TIME(
expression
)Parameter Values
| Parameter | Description |
|---|---|
| expression | Required. The time/datetime to extract the time from |
Technical Details
| Works in: | From MySQL 4.0 |
|---|