Get RETURNING value from Postgresql via Java

后端 未结 4 556
长发绾君心
长发绾君心 2020-12-19 03:28

From Java, I\'m calling a prepared statement in Postgresql with an insert that has a RETURNING clause for my identity column. In PG admin it comes right back, but not sure

4条回答
  •  [愿得一人]
    2020-12-19 03:47

    Calling executeUpdate() expects no result from statement. Call stmt.execute() and then stmt.getResultSet()

提交回复
热议问题