How to Update Rows in MySQL

Last updated July 24, 2026 · By the SaturnSQL team

Use UPDATE ... SET ... WHERE. Join another table directly in the UPDATE to copy values across tables. Safe-updates mode blocks UPDATEs without a key in the WHERE clause.

UPDATE orders SET status = 'shipped' WHERE id = 42;

Update with a join

UPDATE orders o
JOIN customers c ON c.id = o.customer_id
SET o.region = c.region;

Run this in SaturnSQL

SaturnSQL is a browser-based SQL editor for teams: shared query library, schema-aware autocomplete, and scheduled exports to Google Sheets and Slack.

Try it free

Related MySQL guides

© 2026 Panda Capital Oy Ab. All rights reserved.