I am looking for the best way to update the value I store on the following structure:
Table: Pages
Fields:
- id (int)
- bookid (int)
- pageorder (int)
- filename (string/varchar)
So I have the book order and a page number. I need to insert a page before the page number I have, lets say 25, and update all the other pages to have 1 added to their pageorder value.
Can I do this without pulling a list and cycling threw it running updates, or is that the best way to go about it?
Thanks!