标签:
mysql中格式化时间为:
1,DATE_FORMAT(APPLYDATE,‘%Y-%m-%d %H:%i:%S‘) AS APPLYDATE
2,DATE_FORMAT(CHKSIGNDATE, ‘%Y-%m-%d‘) = DATE_FORMAT(#{chksignDate}, ‘%Y-%m-%d‘)
3,AND DATE_FORMAT(APPLYDATE, ‘%Y-%m-%d‘) > #{minApplyDate}
4,AND DATE_FORMAT(APPLYDATE, ‘%Y-%m-%d‘) < #{maxApplyDate}
5,日期区间在今天内一定要有空格between ‘‘+‘ 00:00:00‘ and ‘‘+‘ 23:59:59‘;
标签:
原文地址:http://www.cnblogs.com/likeju/p/4703891.html