I have a table "test" with an auto incremented id
and an arbitrary number of columns.
I want to make a copy of a row in this table with all columns the same except for the id
of course.
Is there a way to do this without naming all columns?
I thought INSERT... SELECT... ON DUPLICATE KEY
would help me until I realised that it never makes an INSERT ON DUPLICATE
, it just updates the existing row.