MyISAM data table
After a record with the maximum number is deleted, the number cannot be reused.
You can use the "auto_increment = N" option to specify an auto-increment initial value when creating a table.
You can use the alter table table_name
Method for resetting the auto-increment start value of various MySQL data table types bitsCN.com
Methods for resetting the auto-increment start value of various MySQL data table types
MyISAM data table
After a record with the maximum number is
Method for modifying the start value of mysql auto-increment ID: bitsCN.com
Many friends in mysql think that the field AUTO_INCREMENT type auto-increment ID value cannot be modified. In fact, this is an incorrect understanding. The following
When you insert A piece of data in Table A and insert data in Table B, you need to add the auto-increment corresponding to the corresponding field in table A. How do you get the auto-increment of Table? Next, we will introduce the auto-increment in
Repeated innodb auto-increment column values
1. duplicate values in the innodb auto-increment column
Start with the problem and reproduce the bug.
use test;drop table t1;create table t1(id int auto_increment, a int, primary key (id))
From: http://blog.chinaunix.net/space.php? Uid = 13626447 & Do = Blog & cuid = 392987
Usage:
Create Table Test(Id int unsigned not null primary key auto_increment,Username varchar (15) not null)Auto_increment = 100;
In database
After the MyISAM data table deletes the maximum number of records, the number cannot be reused. You can use the "AUTO_INCREMENT = n" option to specify an auto-increment initial value when creating a table. After the table is created, use the alter
The auto-increment column here mainly refers to the auto-increment of the primary key id in a table. Unlike Mysql, Oracle cannot set the auto-increment column feature when creating a table in CREATE. Else l
The auto-increment column here mainly
Reset the initial value of AUTO_INCREMENT In the MySQL auto-incrementing ColumnNote that existing data will be deleted using any of the following methods.Method 1:Delete from tb1;Alter table tbl AUTO_INCREMENT = 100;(Benefit, you can set
Reset the initial value of AUTO_INCREMENT In the MySQL auto-incrementing ColumnNote that existing data will be deleted using any of the following methods.
Method 1:Delete from tb1;Alter table tbl AUTO_INCREMENT = 100;(Benefit, you can set
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.