如何在MySQL中手动将种子值设置为1000 [英] How to manually set seed value as 1000 in MySQL
本文介绍了如何在MySQL中手动将种子值设置为1000的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用MySQL5.我需要将自动增量字段的种子值设置为1000. 我该如何设置?
I am using MySQL 5. I need to set the seed value as 1000 for my auto increment field. How can I set it?
推荐答案
在创建表时进行设置:
CREATE TABLE xxx(...) AUTO_INCREMENT = 1000;
要在创建表格后进行设置:
To set after creating the table:
ALTER TABLE xxx AUTO_INCREMENT = 1000;
这篇关于如何在MySQL中手动将种子值设置为1000的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文