Deleting and Replacing Data in MySQL

Published July 26, 2025 By Sai Sree Ram Gundepudi

DELETE Example

DELETE FROM employees WHERE id = 3;

REPLACE Example

REPLACE INTO employees (id, name, salary)
VALUES (2, 'Jane Smith', 65000);

Was this solution helpful?

Your feedback helps improve our technical knowledge repository.

Share this article