Updating Data in MySQL Tables

Published September 25, 2026 By Sai Sree Ram Gundepudi

Basic Update

UPDATE employees
SET salary = 55000
WHERE id = 1;

Always use WHERE to avoid updating all rows unintentionally.

Was this solution helpful?

Your feedback helps improve our technical knowledge repository.

Share this article