【发布时间】:2021-12-03 22:56:14
【问题描述】:
我正在尝试将 Arraylist<String> 写入 postgresql。但低于错误。
ERROR: column "data" is of type character varying[] but expression is of type bytea
Hint: You will need to rewrite or cast the expression.
如果有人知道我应该使用哪种数据类型作为列在 postgresql 中存储 arraylist 内容?
谢谢
【问题讨论】:
-
您可以将列定义为 bytea 数据类型
-
嘿,在这种情况下,列值显示为
[binary data]。仍然看不到内容
标签: java postgresql spring-boot jdbc