我试图加入一个表,该表可能包含给定id的多个条目,并将与此id对应的行聚合到一个数组中。这在SQL查询中如下所示:LEFT JOIN (select id, array_agg(row(foo, bar)) AS foo_bar_data fromfoo_bar_table group by id) AS temp using(id)
这按预期工作,但我在读取JDBC的结果时遇到了困难。到目前为止,我的努力总是以
我知道这可能是这里张贴的问题的副本。:posgresql://localhost:5432/postgres"; String PASS =es.printStackTrace();在运行这段代码时,我得到了以下异常:
java.sql.SQLException: No suitable driver found for jdbcj