0
Q:

sql delete row


 DELETE FROM table_name WHERE condition;
 
41

 DELETE FROM Customers
 WHERE CustomerName='Alfreds Futterkiste';
 
9
DELETE FROM table_name WHERE condition;
14
DELETE FROM table_name;
5
 DELETE FROM table_name WHERE condition;
12
-- Deletes all records where `columnName` matches the values in brackets.
DELETE FROM tableName WHERE columnName IN ('val1', 'val2', 'val3');
3
UPDATE TableName SET ColumnName = NULL
0
public function deletedata(){	

	$this->db->where('id', 2);	
	$this->db->delete('table_name');

	}
2

New to Communities?

Join the community