How to copy a set of rows based on content of one column into the same table and change the content of the conditional column in duplicated rows to something else.
select x, y, z from table A where z="B" ...
copy into table A with incremented IDs ...
and in the new duplicated rows change z="C"
EDIT: I could do following (will it work?) - the Primary Index key is Auto-Incremented
INSERT INTO table A (x, y, z) SELECT x, y, z FROM table A WHERE z="B";
but how do I change z="B" in new duplicated rows at the same time to z="C" ?
Please edit / improve my attempt. Thanks.