Convert java.util.List into java.sql.Array

前端 未结 2 887
情书的邮戳
情书的邮戳 2021-01-03 20:56

How would you convert a java.util.List instance into a java.sql.Array?

2条回答
  •  [愿得一人]
    2021-01-03 21:19

    The type argument to createArrayOf is the element type, not the array type, so you probably want something like "varchar" or "text". VARIADIC is a function argument modifier, not a type specifier.

提交回复
热议问题