Home  >  Article  >  Database  >  查看数据库中每张表自增种子值、增量值

查看数据库中每张表自增种子值、增量值

WBOY
WBOYOriginal
2016-06-07 14:56:361627browse

查看数据库中每张表自增种子值、增量值 无 SELECT TABLE_NAME,IDENT_SEED(TABLE_NAME) AS IDENTITY_SEED,IDENT_INCR(TABLE_NAME) AS IDENTITY_INCREASE FROM INFORMATION_SCHEMA.TABLES WHERE IDENT_SEED(TABLE_NAME) IS NOT NULL

查看数据库中每张表自增种子值、增量值
SELECT TABLE_NAME,IDENT_SEED(TABLE_NAME) AS IDENTITY_SEED,IDENT_INCR(TABLE_NAME) AS IDENTITY_INCREASE FROM INFORMATION_SCHEMA.TABLES WHERE IDENT_SEED(TABLE_NAME) IS NOT NULL
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