I want to copy one row from one table to another table. But in the process I want change value of id. For example to 20. How to do it?
I have this code
INSERT INTO work_done SELECT * FROM work_todo WHERE id = 10 Try somethink like tis
INSERT INTO work_done ( id , col2 ... ) SELECT 20 , col2 ... FROM work_todo WHERE id = 10 10 and 20 are in fact numerical values and stored in a column of numerical type - so then they should not be put in double quotes in your query...