标签:color like log set 查看 数据表 name auto row
可以修改系统变量 auto_increment_increment
mysql> SHOW VARIABLES LIKE ‘auto_inc%‘; +--------------------------+-------+ | Variable_name | Value | +--------------------------+-------+ | auto_increment_increment | 1 | //查看步长 | auto_increment_offset | 1 | +--------------------------+-------+
2 rows in set (0.00 sec)
mysql> SET @@auto_increment_increment=10; //设置步长 Query OK, 0 rows affected (0.00 sec)
mysql> SHOW VARIABLES LIKE ‘auto_inc%‘; +--------------------------+-------+ | Variable_name | Value | +--------------------------+-------+ | auto_increment_increment | 10 | //已设置为10 | auto_increment_offset | 1 | +--------------------------+-------+ 2 rows in set (0.01 sec)
数据表自增将以10为间隔自增
标签:color like log set 查看 数据表 name auto row
原文地址:http://www.cnblogs.com/houweijian/p/6074217.html