After clearing the data in navcat provided id zeroing

Write back is completed, test data needs to be emptied Mysql database, but behind the new data, deleting data has been based on the original maximum id increments basic, such as, for some id sensitive items, very inconvenient, as

10 the original data, after emptying, twelve new, changed manually after a 11, a further increase, 12 become automatically;

Solutions are as follows:

1. In the left column select the desired operating table, right click and choose "Design table"

2. Click on the design surface panel, select the options bar:

3. In auto-increment in the "13" to "3" can, save return. ( Note: change 13 to 3, must ensure that the existing data in the table does not exceed the maximum term id 3, or modification failed; recommended three steps to clear the table before performing this !!!! )

 

Guess you like

Origin www.cnblogs.com/chig/p/11352873.html