Jump to content

Update ID field of table


Omzy

Recommended Posts

Here's how I would do it:

- Create a temptable with similar fields

- ALTER TABLE [temptable] AUTO_INCREMENT = 200

- INSERT data from original table into temptable

- Empty original table

- INSERT back from temptable to original table

 

The actual queries you need I'm not going to write right now (I'm sure someone else would want to) as I'm too tired right now.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.