I'd like to copy the content to an existing table to another existing table. This is what I've tryed :
INSERT into memoryTable select * from currentTable
but I get this error message : #1062 - Duplicate entry '1' for key 'memoryTable.PRIMARY'
I'd like to copy the content to an existing table to another existing table. This is what I've tryed :
INSERT into memoryTable select * from currentTable
but I get this error message : #1062 - Duplicate entry '1' for key 'memoryTable.PRIMARY'
For the persons who have the same problem, I've found a solution :
REPLACE
INTO memoryTable
SELECT *
FROM currentTable
;