Sql delete row from table

This article is tagged with: Sql delete row from table and mysql

delete sql

DELETE FROM table_name WHERE condition;

sql delete row from table

DELETE FROM table_name WHERE condition;

sql delete row

DELETE FROM Customers
WHERE CustomerName='Alfreds Futterkiste';

delete query

public function deletedata(){
$this->db->where('id', 2);
$this->db->delete('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 from table and mysql