Delete records from MySQL table
Question:
How to delete records from MySQL table? Answer:
DELETE FROM mytable WHERE id=123;
Description:
DELETE is a DML statement that removes rows from a table. The DELETE statement deletes rows from tbl_name and returns the number of deleted rows. To check the number of deleted rows, call the ROW_COUNT() function.
The conditions in the optional WHERE clause identify which rows to delete. With no WHERE clause, all rows are deleted.
Reference:
The delete statement reference
Share "How to delete records from MySQL table?"
Related snippets:
Tags:
delete record from table, delete record mysql, delete all records Technical term:
Delete records from MySQL table