Home >Database >Mysql Tutorial >MySql获取下一个自增ID的方法!

MySql获取下一个自增ID的方法!

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:52:511381browse

只要用sql语句:   SHOW TABLE STATUS WHERE Name = ‘表名’

得出的结果里边有个Auto_increment字段,里边有下一个自增ID的数值了!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn