1DELETE FROM table_name WHERE condition;
2-- Ex.
3DELETE FROM Customers WHERE CustomerName='Mustafa Mbari';
1DELETE FROM tableA
2WHERE ROWID IN
3 ( SELECT q.ROWID
4 FROM tableA q
5 INNER JOIN tableB u on (u.qlabel = q.entityrole AND u.fieldnum = q.fieldnum)
6 WHERE (LENGTH(q.memotext) NOT IN (8,9,10) OR q.memotext NOT LIKE '%/%/%')
7 AND (u.FldFormat = 'Date'));
8
1-- Deletes all records where `columnName` matches the values in brackets.
2DELETE FROM tableName WHERE columnName IN ('val1', 'val2', 'val3');
1DELETE FROM my_table; -- all rows
2DELETE FROM my_table WHERE my_id = 12345;
3DELETE FROM my_table WHERE my_id IN (SELECT id2 FROM my_table2);
4COMMIT; -- don't forget it...
1Delete data from a table.
2Example: Removes a user with a user_id of 674.
3DELETE FROM users WHERE user_id = 674;
1DELETE FROM my_table; -- all rows
2DELETE FROM my_table WHERE my_id = 12345;
3DELETE FROM my_table WHERE my_id IN (SELECT id2 FROM my_table2);