1DELETE FROM table_name WHERE condition;
2-- Ex.
3DELETE FROM Customers WHERE CustomerName='Mustafa Mbari';
1-- Deletes all records where `columnName` matches the values in brackets.
2DELETE FROM tableName WHERE columnName IN ('val1', 'val2', 'val3');
1Mit DELETE werden einzelne oder mehrere Datensätze gelöscht. Mit WHERE
2werden nur bestimmte Datensätez gelöscht.
3
4 DELETE FROM suppliers
5 WHERE
6 supplier_name = 'Microsoft';
7
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...
1public function deletedata(){
2
3 $this->db->where('id', 2);
4 $this->db->delete('table_name');
5
6 }