开发者

Execute 'SET a = b' query

I want to execute 'SET a = b' query using Active Record开发者_开发问答 in Codeigniter. I am using MySQL. I tried with

$this->db->set('a', 'b', FALSE);

But it executes

SET a = NULL


I think you can do:

$this->db->query('SET a = b')

Reference: http://codeigniter.com/user_guide/database/queries.html

  • Christian
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜