摘要:
今天 select * from 表名 where to_days(时间字段名) = to_days(now()); 昨天Select * FROM 表名 Where TO_DAYS( NOW( ) ) - TO_DAYS( 时间字段名) <= 1 7天Select * FROM 表名 where 阅读全文
posted @ 2016-09-30 15:07
AmbitiousMice
阅读(2842)
评论(0)
推荐(0)
摘要:
本周内:select * from wap_content where week(created_at) = week(now) 查询一天:select * from table where to_days(column_time) = to_days(now());select * from ta 阅读全文
posted @ 2016-09-30 10:57
AmbitiousMice
阅读(6891)
评论(0)
推荐(1)
摘要:
新手出道 验证了很久sum()里面带参数方式 #{参数}一直不行日志显示参数已经传进 但就是加不上去 返回的始终是0 后面换成$(参数)之后就行了 @Select("select sum(${type}) from "+ TABLE_HOUR + " where date_format(`date` 阅读全文
posted @ 2016-09-30 09:57
AmbitiousMice
阅读(4305)
评论(0)
推荐(0)

浙公网安备 33010602011771号