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