Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind MySQL ADDTIME() 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.
___ ADDTIME("2017-06-153Order
Put the learning moves in the order that makes the concept easiest to apply.
The ADDTIME() function adds a time interval to a time/datetime and then returns the time/datetime.
Definition and Usage
MySQL ADDTIME() Function
Example
SELECT ADDTIME("2017-06-15
09:34:21", "2");Definition and Usage
The ADDTIME() function adds a time interval to a time/datetime and then returns the time/datetime.
Syntax
ADDTIME(
datetime
,
addtime
)Parameter Values
| Parameter | Description |
|---|---|
| datetime | Required. The time/datetime to be modified |
| addtime | Required. The time interval to add to datetime . Both positive and negative values are allowed |
Technical Details
| Works in: | From MySQL 4.0 |
|---|