sql delete table data code example
Example 1: delete table sql
DROP TABLE table_name;
Example 2: sql delete table
Deletes a table from a database.
Example: Removes the users table.
DROP TABLE users;
Example 3: delete query
public function deletedata(){
$this->db->where('id', 2);
$this->db->delete('table_name');
}