sql remove from table code example
Example 1: delete table sql
DROP TABLE table_name;
Example 2: sql delete
Delete data from a table.
Example: Removes a user with a user_id of 674.
DELETE FROM users WHERE user_id = 674;
Example 3: delete query
public function deletedata(){
$this->db->where('id', 2);
$this->db->delete('table_name');
}