level 1
jhgyz2011
楼主
ireport作报表,从数据库查询后填充到报表中供查询和打印使用。在 sqlServer上是正常的,sqlServer数据库导到postgressql上后,查询postgressql数据库时出错。
查询语句:select * from c_charge_information where charge_time >= '2011-7-12'
and ship_gate like '新坝%'
order by ship_gate
报错信息:psqlexception:error:operator does not exits:timestamp without time zone > = charcter varying.
查询语句直接在postgressql上手工查询是可以的,通过ireport 则不行。
charge_time字段在 sqlServer中类型是datetime,postgressql上导过来默认是timestamp time zone,我改成了timestamp without time zone(不带时区)。
请遇到过此问题的朋友帮忙一下哦。
2011年07月12日 05点07分
1
查询语句:select * from c_charge_information where charge_time >= '2011-7-12'
and ship_gate like '新坝%'
order by ship_gate
报错信息:psqlexception:error:operator does not exits:timestamp without time zone > = charcter varying.
查询语句直接在postgressql上手工查询是可以的,通过ireport 则不行。
charge_time字段在 sqlServer中类型是datetime,postgressql上导过来默认是timestamp time zone,我改成了timestamp without time zone(不带时区)。
请遇到过此问题的朋友帮忙一下哦。