码迷,mamicode.com
首页 > 数据库 > 详细

Mybatis+Mysql一些事儿

时间:2017-05-10 14:37:26      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:技术分享   nbsp   sed   ndt   mysq   分享   type   play   rtt   

Mybatis使用中,应注意的一些点

1.时间段查询

方法(1):

技术分享>= <=

方法(2):

技术分享
1 a.create_time between
2                     str_to_date(#{startTime,jdbcType=VARCHAR},‘%Y-%m-%d %H:%i:%S‘) and
3                     str_to_date(#{endTime,jdbcType=VARCHAR},‘%Y-%m-%d %H:%i:%S‘) and
between

 

Mybatis+Mysql一些事儿

标签:技术分享   nbsp   sed   ndt   mysq   分享   type   play   rtt   

原文地址:http://www.cnblogs.com/bridgestone29-08/p/6835493.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!