设置MySQL自动增长起点和步长_MySQL
程序员文章站
2024-01-07 15:55:13
...
bitsCN.com
设置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)