e2

滴滴侠,fai抖

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2017年2月15日

摘要: /*今天*/select * from 表名 where to_days(时间字段) = to_days(now());/*昨天*/select * from 表名 where to_days(now())-to_days(时间字段) = 1;/*近7天*/select * from 表名 wher 阅读全文
posted @ 2017-02-15 14:12 纯黑Se丶 阅读(5533) 评论(0) 推荐(0) 编辑