CodeIgniter Active Record 不相等
2022-08-30 09:34:49
在使用活动记录的CodeIgniter中,我如何执行不等于.例如:$this->db->where()
$this->db->where('emailsToCampaigns.campaignId', $campaignId);
会做等于,但我不需要等于。我试过:
$this->db->where('emailsToCampaigns.campaignId <> ', $campaignId);
$this->db->where('emailsToCampaigns.campaignId != ', $campaignId);
$this->db->where('emailsToCampaigns.campaignId', ' != ' . $campaignId);
$this->db->where('emailsToCampaigns.campaignId != ' . $campaignId);
一切都没有运气。想法?