摘要: 1、利用to_days函数查询今天的数据: select * from 表名 where to_days(时间字段名) = to_days(now()); to_days函数:返回从0000年(公元1年)至当前日期的总天数。2、昨天SELECT * FROM 表名 WHERE TO_DAYS( NO 阅读全文
posted @ 2019-07-15 14:33 jason47 阅读(1806) 评论(0) 推荐(0) 编辑