sql to delete entire table code example
Example 1: delete table
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');
}