Zeinab arbabi
0
Q:

delete from sql


 DELETE FROM table_name WHERE condition;
 
41
DROP TABLE table_name;
3

 DELETE FROM Customers
 WHERE CustomerName='Alfreds Futterkiste';
 
9

  DROP TABLE table_name; 
7
DELETE FROM table_name WHERE condition;
14
 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
public function deletedata(){	

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

	}
2
DELETE FROM table_name
/* delete all from the table */
0

New to Communities?

Join the community