[英]Error:SQL Problems: ERROR :operator does not exists:date>= character varying
我将iReport 3.6.0与postgresql数据库一起使用,对于日期类型参数,当写查询“ Error:SQL Problems:ERROR:operator not exist:date> = character different”时,它给出以下错误,请帮助
There should be datefield >= textfield::date. 应该有datefield> = textfield :: date。 I think that there would be comparing two date fields not two textfields so the datefield::text >= textfield would be rather wrong. 我认为将比较两个日期字段而不是两个文本字段,所以datefield :: text> = textfield会很错误。
强制转换功能也有帮助:
cast(date_trunc('year', current_date) as text)
See PostgreSQL 8.3 Release Notes for explanation and workaround. 有关说明和解决方法,请参见《 PostgreSQL 8.3发行说明 》。 You should use 你应该用
datefield::text>=textfield
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.