insert into table select * from table where primarykey=1
I just want to copy one row to insert into the same table (i.e., I want to duplicate an ex
I used in my Koha database to insert duplicate items with the 'C' prefix in barcode column:
INSERT INTO items (`biblionumber`, `biblioitemnumber`, `barcode`, `dateaccessioned` ) SELECT `biblionumber`, `biblioitemnumber`, CONCAT('C',`barcode`), `dateaccessioned` FROM `items` WHERE barcode='14832';