I have an autoinc table that has had a record deleted and packed thereafter
To recreate the record in the same place I am thinking of the following:
copy structure extended to a another file & and create a duplicate of the table and all the records for backup
remove autoinc
drop primary key
copy all records after the deleted entry to a temp table
delete records after the insertion point
insert the missing record
copy back the records after the newly created record
turn autoinc back on
add primary key
Is this going to work or will this corrupt that data?
To recreate the record in the same place I am thinking of the following:
copy structure extended to a another file & and create a duplicate of the table and all the records for backup
remove autoinc
drop primary key
copy all records after the deleted entry to a temp table
delete records after the insertion point
insert the missing record
copy back the records after the newly created record
turn autoinc back on
add primary key
Is this going to work or will this corrupt that data?