Statement.RETURN_GENERATED_KEYS가있는 PreparedStatement 일부 JDBC 드라이버가 반환하는 유일한 방법 Statement.RETURN_GENERATED_KEYS은 다음 중 하나를 수행하는 것입니다. long key = -1L; Statement statement = connection.createStatement(); statement.executeUpdate(YOUR_SQL_HERE, Statement.RETURN_GENERATED_KEYS); ResultSet rs = statement.getGeneratedKeys(); if (rs != null && rs.next()) { key = rs.getLong(1); } 똑같이 할 수있는 방법이 PreparedStat..