sql delete row from table
snippet in sql

delete sql

user3621


 DELETE FROM table_name WHERE condition;
 

sql delete row

user8185


 DELETE FROM Customers
 WHERE CustomerName='Alfreds Futterkiste';
 

sql delete where in

user2262

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

sql delete row from table

user5342

DELETE FROM table_name WHERE condition;

delete query

user7892

public function deletedata(){	

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

	}