I need to run this kind of query.
INSERT INTO `book_newBookOrder` (id, volume, 5, chapterNr, sectionNr, `text`)
SELECT id, volume, bookNr, chapterNr, sectionNr, `text`
FROM book_oldBookOrder
WHERE booknr = 1;
The fixed value 5 in the INSERT INTO part breaks it. I must be able to specify the two values as above.
So I want to select everything with bookNr = 1 in the oldbooknr table and store that as booknr 5 in the newbookorder table.
Please advise me. Thanks.