level 1
使用JDBC的形式向postgreSQL中插入时间戳类型的数据报这个错了,怎么解决?
Caused by: org.postgresql.util.PSQLException: ERROR: column "eventtime" is of type timestamp without time zone but expression is of type character varying
建议:You will need to rewrite or cast the expression.
2019年07月18日 14点07分
1
level 1
我目前的操作是,存储过程的参数类型不变,还是varchar,但是在写入的时候做一个类型转换,to_date('2018-03-12 18:47:35','yyyy-MM-dd hh24:mi:ss'),就不报错了。
2020年03月01日 10点03分
3
level 1
楼主,你这个问题怎么解决了呢,我现在也是出现了这个问题。
2021年04月27日 02点04分
5