tp5 join 怎样加条件

浏览:5361 发布日期:2018/05/07 分类:求助交流
return $this->alias("ser")
->join("project p", "ser.project_id=p.project_id")
->join("channel c", "ser.channel_id=c.channel_id")
->field("ser.*")
->where(["p.project_name"=>['like',"%".$where."%"]])->limit($offset, $limit)->order($sortfield)->select();
最佳答案
评论( 相关
后面还有条评论,点击查看>>