会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
code
博客园
首页
新随笔
联系
管理
订阅
2022年5月18日
tp5 关联查询 报错:Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous
摘要: tp5 做关联查询,想要添加一个where条件,对id进行筛选,代码如下 $customWhere = ['id' => ['in',$websiteId]]; $list = $this->model ->with(['admin','category','language']) ->where(
阅读全文
posted @ 2022-05-18 10:28 大雄呀
阅读(2502)
评论(0)
推荐(0)
编辑
公告