首页/应用软件/内容

怎么通过MySql查看与更改auto_increment的办法

应用软件2024-02-29 阅读()
[摘要]+----------------+1 row in set (0.04 sec)修改表auto_incrementalter table tablename auto_increment=NUMB...
+----------------+1 row in set (0.04 sec)

修改表auto_increment

alter table tablename auto_increment=NUMBER;

例子:修改 test_useruserauto_increment10000

mysql> alter table test_user.user auto_increment=10000;
Query OK, 0 rows affected (0.12 sec)
Records: 0  Duplicates: 0  Warnings: 0mysql> select auto_increment from information_schema.tables where table_schema='test_user' and table_name='user';
+----------------+(北联网教程,专业提供视频软件下载)

第1页  第2页  第3页  第4页  第5页  第6页  第7页  第8页  第9页 

……

相关阅读