Skip to content

DELETE

DELETE FROM Customers
WHERE CustomerName='John Doe';
Query OK, 1 row affected (0.01 sec)

The DELETE command is used to remove existing records from a MySQL database. In the given example, it removes the record from the ‘Customers’ table where the ‘CustomerName’ is ‘John Doe’. The output indicates that the command has been executed successfully, deleting one row.