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