We have a HSQLDB table with an ARRAY column. How can we update a single element with a low-cost prepared statement?
So far, we have tried:
PreparedStatement pstmt = con.prepareStatement("UPDATE mytbl SET col[?] = ? WHERE id = ?");
...
pstmt.setInt(1, idx);
pstmt.setInt(2, val);
pstmt.setInt(3, id);
...
But that does not work.