i am trying to get insertion id from postgres database. My code now looks like:
String sql = "INSERT INTO ACCOUNT (name) VALUES (?);";
jdbcTemplate.update(sql, account.name);
id is generated automatically.
How should I change this code, that it would return the row id of the inserted account?