5
我有这个疑问:笨活动记录,添加IF在声明 - > select()函数
$this->db->select("
IF(predicts.predict_owner = votes.vote_user_id , IF(judges.judge_did_accept = 1 , True , False) , 'NotExists')" , 'user_judgement');
我得到语法错误的
`'NotExists'`)
如果我直接运行在数据库内查询,它工作正常...
有什么办法可以防止CI添加符号`自动?
感谢
你有什么礁作为第二个参数传递给那里? –