我在笨一些代碼,看起來像這樣:笨/ Active Record的類生成空白()
$this->db->select('email_account_id');
$this->db->where('TRIM(LOWER(email_account_incoming_username))',trim(strtolower($email_address)));
$query = $this->db->get($this->users_db.'email_account');
拋出這個錯誤:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND TRIM(LOWER(email_account_incoming_username)) = '[email protected]'' at line 3
SELECT `email_account_incoming_username`, `email_account_id` FROM (`crmuat_users`.`email_account`) WHERE `email_account_id` IN() AND TRIM(LOWER(email_account_incoming_username)) = '[email protected]'
現在我的生活不我瞭解「IN()」是如何進入的?
任何人都能看到?
我可能只需要重新初始化該類? –
SELECT'email_account_incoming_username'這不在代碼中...? – Bruce