1、直接比较
<if test="data.endTime != null and data.endTime != ''">
and <![CDATA[ a.monitor_time <= date_format(#{data.endTime},'%Y-%m-%d %H:%i:%s') ]]>
</if>
2、时间戳比较 UNIX_TIMESTAMP
unix_timestamp('2021-03-04 00:00:00')>UNIX_TIMESTAMP(now())
最后
以上就是美满乐曲最近收集整理的关于MySQL java XML 日期时间比较的全部内容,更多相关MySQL内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复