改成:
pstmt=conn.prepareStatement(sql,Statement.RETURN_GENERATED_KEYS);
rs=pstmt.getGeneratedKeys();

即可!

相关文章:

  • 2021-11-06
  • 2021-05-07
  • 2022-02-09
  • 2022-02-27
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-05-17
猜你喜欢
  • 2021-12-19
  • 2021-04-14
  • 2022-01-07
  • 2021-09-28
相关资源
相似解决方案