sql 查询当前时间到前五分钟的数据

sql 查询当前时间到前五分钟的数据 数据类型是datetime 如果当前时间是2016-08-26 16:17
查询现在时间到前五分钟的数据

select * from table as of timestamp sysdate - 5 / 1440

DATE_SUB('2016-08-26 16:17',INTERVAL 5 MINUTE)

参考自:
MySQL DATE_SUB()函数 http://www.data.5helpyou.com/article523.html

MySQL中可以这样,select * from t where time>DATE_SUB(NOW(), INTERVAL 5 MINUTE)