exp查询表达式生成的sql语句有问题?

浏览:1685 发布日期:2013/08/02 分类:求助交流
$data['path']=array('exp',"replace(`path`,'$oldpath','$path')");
$data['level']=array('exp',"replace(`level`,'$oldlevel','$level')");
$this->dao->where("id<>$id and find_in_set('$id',`level`)")->save($data);
生成的sql语句是:UPDATE `lbh_category` SET `path`=replace(`path`,\'00000079\',\'00000075-00000079\'),`level`=replace(`level`,\'79\',\'75,79\') WHERE ( id<>79 and find_in_set('79',`level`) )怎么'前面都被加了\,这样sql语句就错了啊,请问怎么解决。
最佳答案
评论( 相关
后面还有条评论,点击查看>>