ADDDATE() 函数将时间/日期间隔添加到日期,然后返回日期。
ADDDATE(
date, INTERVAL
value addunit)
或者:
ADDDATE(
date,
days)
Parameter | Description |
---|---|
date | Required. The date to be modified |
days | Required. The number of days to add to date |
value | Required. The value of the time/date interval to add. Both positive and negative values are allowed |
addunit | Required. The type of interval to add. Can be one of the following values:
|
工作于: | 从 MySQL 4.0 开始 |
---|
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!