如何設置auto_increment列,使其每個記錄插入的增量爲10。MySQL - Auto_increment除以10
對於如:而不是默認auto_increment
由1,
insert into temptable (name) values('abc'),('def');
select * from temptable;
id|name
1|abc
2|def
auto_increment by 10,
id|name
10|abc
20|def
根據使用的情況下,這可能是做 – 2011-02-18 21:16:17