timestamp with time zone >= character varying

Cause: org.postgresql.util.PSQLException: ERROR: operator does not exist: timestamp with time zone >= character varying

Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Position: 2714
; bad SQL grammar []

客户端Navicat里面sql可以执行,但是java代码报错

需要类型转换String→Timestamp ,转换时String必须要yyyy-mm-dd mm:ss:mm 类型,否则报错。

你可能感兴趣的:(数据库)