delete table records in sql code example
Example 1: delete table sql
DROP TABLE table_name;
Example 2: delete query
public function deletedata(){
$this->db->where('id', 2);
$this->db->delete('table_name');
}
DROP TABLE table_name;
public function deletedata(){
$this->db->where('id', 2);
$this->db->delete('table_name');
}