Skip links

How to update multiple rows of your MySQL database by selecting ID range

March 27, 2013

This updates all products to live status (1) in the column ProductLive whose ID is between 2596 and 3029

UPDATE products SET ProductLive = 1 WHERE products.ProductID >2596 LIMIT 3029

chris-parker
This website uses cookies to improve your web experience.
chris-parker

Send me a message.

Happy to answer any question you may have.

chris@chrisparkerdesign.co.uk

07813 311253

    Your Name (required)

    Your Email (required)

    Subject

    Your Message

    CHRIS PARKER DESIGN

    chris@chrisparkerdesign.co.uk

    07813 311253