I have the table step_year: id, step_id, year
I want to duplicate all rows that have year = 1011 (select * from step_year where year = 1011), but instead of those newly created rows having the same year (1011) I want to change it to 1112.
Any help is appreciated.
You can do the
INSERTbased on aSELECTbut specify the year instead of pulling it from the queryThis syntax is for MySQL, but should be adaptable to most databases.