How create a SQL array from a Java List?

后端 未结 1 1014
盖世英雄少女心
盖世英雄少女心 2020-12-18 03:30

I\'m trying to insert an array in a table, but I need to convert the list to the SQL Array type. I\'m using the Connection#createArrayOf() method, but I\'m gett

相关标签:
1条回答
  • 2020-12-18 03:48

    Use "varchar" instead of "VARCHAR". See http://grepcode.com/file/repo1.maven.org/maven2/postgresql/postgresql/9.0-801.jdbc4/org/postgresql/jdbc2/TypeInfoCache.java#TypeInfoCache.0types

    0 讨论(0)
提交回复
热议问题