Sql delete row

This article is tagged with: Sql delete row and mysql

sql delete row

DELETE FROM Customers
WHERE CustomerName='Alfreds Futterkiste';

remove from table where

DELETE FROM table_name WHERE condition;

delete sql

DELETE FROM table_name WHERE condition;

drop all data from tables

DELETE FROM table_name WHERE condition;

delete all records from table

DELETE FROM table_name;

sql delete where in

-- Deletes all records where `columnName` matches the values in brackets.
DELETE FROM tableName WHERE columnName IN ('val1', 'val2', 'val3');

This article is tagged with: Sql delete row and mysql