thinkphp5的bind的bug问题

浏览:1333 发布日期:2017/03/26 分类:ThinkPHP5专区
$bind=array(
                //'username'=>'test',
                'uid'=>'20',
                
            );
        $arr["uid"]=":uid";
        $arr["id_form"]=2;
        $res=Db::name("build_log")
             ->where('id',3)
            ->bind($bind)
            ->update($arr);
        echo Db::name("build_log")->getLastSql();
//'username'=>'test', 如果把这一句注释去掉,就会报错,为啥啊。查询的时候为啥不报错呢?
最佳答案
评论( 相关
后面还有条评论,点击查看>>