ștergeți toate înregistrările din tabel
DELETE FROM table_name;
sql șterge rând din tabel
DELETE FROM table_name WHERE condition;
cum se șterge rândul în sql
delete from TableName where condition;
delete from scrumteam where firstname='Jack';
delete from scrumteam where JobTitle='SDET';
cum se șterge rândul în sql
DELETE FROM my_table; -- all rows
DELETE FROM my_table WHERE my_id = 12345;
DELETE FROM my_table WHERE my_id IN (SELECT id2 FROM my_table2);
șterge interogarea
public function deletedata(){
$this->db->where('id', 2);
$this->db->delete('table_name');
}
șterge din sql
delete from table_name where condition;