1.时间函数:
取当前时间前多少天
TIMESTAMPADD(timeintervalunit, interval, timepoint)
timeintervalunit类型:DAY
interval:数值
timepoint:时间点
举个例子:
1.当前天的前70天:TIMESTAMPADD(DAY, 70, CAST(CURRENT_DATE as DATE))
1.时间函数:
取当前时间前多少天
TIMESTAMPADD(timeintervalunit, interval, timepoint)
timeintervalunit类型:DAY
interval:数值
timepoint:时间点
举个例子:
1.当前天的前70天:TIMESTAMPADD(DAY, 70, CAST(CURRENT_DATE as DATE))