关于Between and查询日期边界问题和查不到当天日期的问题
关于Between and查询日期边界问题和查不到当天日期的问题
解决办法 加一天
mysql写法
select * from table where date between '2018-07-21' and date_add('2018-07-23',interval 1 day)
mybatis
mybatis 写法
<if test="beginGenerateTime != null and beginGenerateTime != '' and endGenerateTime != null and endGenerateTime != ''"> and generate_time between #{beginGenerateTime} and DATE_ADD(#{endGenerateTime}, INTERVAL 1 DAY)</if>
©版权声明演示站内容均来自互联网,如有侵权,请与我联系
THE END
喜欢就支持以下吧
The God only arranges a happy ending. If it is not happy, it means it is not the final result.
上天只会安排快乐的结局,如果不快乐,说明还不是最终结局。
优雅的支付系统:给站长提供强劲的生产力
子比主题付费下载演示
超级耐看的小可爱美女图集
《超能陆战队》预告片
子比主题优雅的付费图库体验
新 iPad 测评:苹果在教育领域的野心