`
chuan9966
  • 浏览: 47016 次
文章分类
社区版块
存档分类
最新评论

关于oracle中between and 在mybaties中的使用

 
阅读更多

在mybaties使用中会遇到从oracle中查询数据区间的条件 ,以下代码可做 参考:


<if test="createDate != null and createDate !=''">
        		AND cv.create_date  between to_date(#{createDate}||' 00:00:00','yyyy-mm-dd hh24:mi:ss') and to_date(#{createDate}||' 23:59:59','yyyy-mm-dd hh24:mi:ss')
        	</if>




分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics