在使用活動記錄的CodeIgniter中,如何執行不等於$this->db->where()
。例如:CodeIgniter活動記錄不等於
$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);
所有沒有運氣。想法?
假設這是第一行中的逗號,您有一段時間(concat)。 – jondavidjohn 2011-03-07 23:04:11