If I have a table, called Places with several fields, and a primary key placeID, what if the best way to INSERT a new item into the table, such that placeID is autoincremented, but all the other fields are the same as the item with placeID= 001,say.
This is what I am doing
SELECT* FROM Places WHERE placeID = 001 ...
INSERT INTO Places VALUES(...should be values from previous select)
but I can’t quite figure out how to do it.
You just have it backwards, and you need to explicitly name your columns, with every column except
placeIDin theSELECTlist:You should get a new row with
placeIDauto-incremented.