mysql中关于时间的总结

1.DATE_SUB(date,INTERVAL expr type)函数
实例:
select * from xxx where create_time > DATE_SUB(NOW(),INTERVAL 1 HOUR);
  以字段create_time为基准,查询表中 一个小时内的数据












未完待续。。。
posted @ 2019-10-24 13:37  易水蜗牛  阅读(200)  评论(0编辑  收藏  举报