自增取id值
select LAST_INSERT_ID() 后取返回,不写id值
如下图:
mybatis使用mysql数据库插入后获取Id的值

select LAST_INSERT_ID()

取uuid()
select uuid() 先取值在插入

mybatis使用mysql数据库插入后获取Id的值

select uuid()

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
猜你喜欢
  • 2022-12-23
  • 2021-09-04
  • 2021-08-16
  • 2022-12-23
  • 2022-01-23
  • 2022-01-02
  • 2022-12-23
相关资源
相似解决方案