I have a Postgres table containing a column of type text[][]
. In JDBC code I've used a String array, but an exception told me that these two do not match. If there's no mapping between these types, could you suggest a Postgres type for a string arrays?
This is the code:
String list = "'{";
for(int i=0; i<array.length; i++) {
list+=prodotti[i]+",";
}
list+="}'";
preparedStm.setString(4, list);
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…