mysql- 日期函数 date_sub()和date_add

DATE_ADD(date,INTERVAL expr unit)DATE_SUB(date,INTERVAL expr unit)

These functions perform date arithmetic. The date argument specifies the starting date or datetime value. expr is an expression specifying the interval value to be added or subtracted from the starting date. expr is evaluated as a string; it may start with a - for negative intervals. unit is a keyword indicating the units in which the expression should be interpreted.

例:

mysql- 日期函数 date_sub()和date_add

上一篇:Apache Kafka-max.poll.interval.ms参数含义说明


下一篇:【DCTWVRP】基于matlab遗传算法求解带容量+距离+距离的VRP问题【含Matlab源码 1211期】