修改mysql自增字段的方法

来源:互联网 发布:南天软件待遇 编辑:程序博客网 时间:2024/06/05 00:16
修改mysql自增字段的方法修改 test_user 库 user 表 auto_increment为 10000(从10000开始递增)
mysql> alter table test_user.user auto_increment=10000;Query OK, 0 rows affected (0.12 sec)Records: 0  Duplicates: 0  Warnings: 0//查看递增mysql> select auto_increment from information_schema.tables where table_schema='test_user' and table_name='user';+----------------+| auto_increment |+----------------+|          10000 |+----------------+1 row in set (0.04 sec)


查看原文:http://newmiracle.cn/?p=1571
0 0