例如我的主键id为candidateId

<selectKey keyProperty="candidateId" resultType="java.lang.Integer" order="AFTER">
    select LAST_INSERT_ID()
</selectKey>

 

 

如何在mybatis中拿到自增的id

相关文章:

  • 2021-12-01
  • 2021-05-13
  • 2021-11-12
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
猜你喜欢
  • 2022-12-23
  • 2021-09-26
  • 2021-09-01
  • 2021-10-12
  • 2022-12-23
  • 2021-11-17
  • 2021-07-06
相关资源
相似解决方案