Announcing our $3.4M seed round from Gradient Ventures, FundersClub, and Y Combinator 🚀 Read more →
How to Delete in MySQL
To delete rows in a MySQL table, use the DELETE FROM
statement:
DELETE FROM products WHERE product_id=1;
The WHERE
clause is optional, but you'll usually want it, unless you really want to delete every row from the table.
Spread the word
Tweet