如何设置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