进行左连接查询报错 去掉where('uid',$uid)
就不报错 这是为什么
$res=DB::table('collection')->where('uid',$uid)->leftJoin('blog','collection.href','=','blog.href')->get()->toArray();
进行左连接查询报错 去掉where('uid',$uid)
就不报错 这是为什么
$res=DB::table('collection')->where('uid',$uid)->leftJoin('blog','collection.href','=','blog.href')->get()->toArray();
报错的意思是语句里面有两个字段都叫uid
把uid加上表名前缀, 或者在select里面把某个uid去掉