标签:sub() sql select create info mysql查询 int src pre
date_sub()函数:
DATE_SUB(date,INTERVAL expr type)
实例:
SELECT NOW(),DATE_SUB(NOW(),INTERVAL 1 HOUR) as the_time
select * from xxx where create_time > DATE_SUB(NOW(),INTERVAL 1 HOUR);
转自:https://www.cnblogs.com/vijayfly/p/6265871.html
标签:sub() sql select create info mysql查询 int src pre
原文地址:https://www.cnblogs.com/justlove/p/13307521.html