J
J
joker89992017-03-20 17:23:17
MySQL
joker8999, 2017-03-20 17:23:17

How can I copy from one table to a new one with new id's?

Essence of a question:
- I copy the table
- I delete some lines in the new table
- I clean old
- I interpose all lines from the copied table in old
Question: how at this insertion to make that the id field with an autoincrement was calculated anew?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor, 2017-03-20
@TexElless

Clear autoincrement on a table. Or something in the spirit
Or you can use for cleaning
Instead of the usual DELETE FROM.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question