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

PostgreSql问题:ERROR: operator does not exist: timestamp without time zone > character varying

时间:2017-04-12 19:52:21      阅读:1351      评论:0      收藏:0      [点我收藏+]

标签:end   back   erro   round   alarm   postgre   tor   not   start   

问题描述:

ERROR:  operator does not exist: timestamp without time zone > character varying

解决方法:

//注意此处的格式必须是 yyyy-mm-dd hh:mm:ss[.f...] 这样的格式,中括号表示可选,否则报错

Timestamp alarmStartTime = Timestamp.valueOf("2011-05-09 11:49:45");

Timestamp alarmEndTime = Timestamp.valueOf("2011-05-09 11:49:45");

condition.put("alarmStartTime", alarmStartTime);
condition.put("alarmEndTime", alarmEndTime);

<if test="alarmStartTime!=null &amp;&amp; alarmStartTime!=‘‘">
AND alarm_start_time &gt; #{alarmStartTime}
</if>
<if test="alarmEndTime!=null &amp;&amp; alarmEndTime!=‘‘">
AND alarm_end_time &lt; #{alarmEndTime}
</if>

PostgreSql问题:ERROR: operator does not exist: timestamp without time zone > character varying

标签:end   back   erro   round   alarm   postgre   tor   not   start   

原文地址:http://www.cnblogs.com/haimishasha/p/6700733.html

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