$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语句就错了啊,请问怎么解决。 最佳答案