下面我有两个按预期工作的查询。CodeIgniter 如何知道不向第二个查询添加 2 个 where 子句?它是否在 $this->db->update 之后重置查询语句?
//Make sure customers don't belong to tier anymore
$this->db->where('tier_id', $tier_id);
$this->db->update('customers', array('tier_id' => NULL));
$this->db->where('id', $tier_id);
return $this->db->delete('price_tiers');