首页  >  文章  >  数据库  >  查看数据库中每张表自增种子值、增量值

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

WBOY
WBOY原创
2016-06-07 14:56:361627浏览

查看数据库中每张表自增种子值、增量值 无 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
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn