`
lbyzx123
  • 浏览: 467289 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

mysql预先取自动增长主键的下一个值

    博客分类:
  • java
阅读更多
对应test表,mysql可以预先取自动增长主键的下一个值,方法如下:
select auto_increment from information_schema.`TABLES`
 where table_name='test'   .
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics