设置MySQL自动增长起点和步长


mysql> SET @auto_increment_increment=10;
                      
mysql> SHOW VARIABLES LIKE 'auto_inc%';
                       +--------------------------+-------+
                       | Variable_name            | Value |
                       +--------------------------+-------+
                       | auto_increment_increment | 10    |
                       | auto_increment_offset    | 1     |
                       +--------------------------+-------+
                      2 rows in set (0.01 sec)

猜你喜欢

转载自mesum.iteye.com/blog/1730576