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