delete rows table mysql code example
Example 1: mysql delete row
DELETE FROM products WHERE product_id=1;
Example 2: delete all rows from table mysql
-- Quick, no possible rollback
TRUNCATE TABLE my_table;
-- With rollback
DELETE FROM my_table;
COMMIT;
Example 3: delete row mysql
DELETE FROM table_name
WHERE condition;Code language: SQL (Structured Query Language) (sql)