throws an exception which has to be handled inside of the mapping, so you end up with List<String> listOfStrings = IntStream.range(0, array.length()).mapToObj(i ... ... <看更多>
Replace 'json' with 'jsonb' for jsonb in all following SQL code. SELECT t.tbl_id, d.list FROM tbl t CROSS JOIN LATERAL ( SELECT string_agg(d.elem::text, ... ... <看更多>