How would you convert a java.util.List<String>
instance into a java.sql.Array
?
|
Use For example:
Where typeName is:
As noted in the comments, this is Java 1.6. For older versions you can't create this in a driver-independent way. You are only supposed to get arrays, not create them. If you want to, you can instantiate the implementing class from your jdbc driver, but this is non-portable. |
|||||||||||||||||
|
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. |
|||
|