I have a table say table1(id, col2, col3), and I want to duplicate all data of id 1 but with different id say 11 (id is not auto generated column). I wrote the following sql query which is not working for me (giving syntax error):
INSERT INTO table1(
id,
col2,
col3
)
VALUES (
SELECT 11 , col2, col3
FROM table1 WHERE id=1
)