I have a table with the following fields
ID, date, attribute
I want to duplicate all of the rows but with the duplicates I want the ID to be different. The current ID is 241, I want the ID of the copied rows to be 251.
INSERT INTO table (ID, date, attribute) SELECT (251, date, attribute) FROM attendance WHERE ID = 241
as per the post here - MySQL: How to copy rows, but change a few fields? but I can't get it to work. What am I doing wrong?