首页> 实战笔录 >PHP开发笔记 >ThinkPHP ThinkPHP
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Attr_id' in 'where clause'
作者:小萝卜 2021-05-06 【 TP5 】 浏览 2544
简介TP框架关联模型报错SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Attr_id' in 'where clause'
TP框架关联模型报错
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Attr_id' in 'where clause'
需要去你模型关联的模型,添加一个 Attr_id 字段
很赞哦! (0)
相关文章
- phpQuery介绍及简单的使用
- TP5.1 钩子与行为应用
- TP6上传文件/图片到阿里云OSS
- TP6阿里云OSS上传报SSL certificate problem:unable to get local issuer certificate
- TP6插入数据自动写入时间
- TP6使用Jwt验证token时报错Cannot pass parameter 3 by reference
- Thinkphp框架中三元运算符的使用方法
- TinkPHP6-tp6实现全站静态化方法
- TP6上传图片验证时报错think\\Validate::check() must be of the type array
- TP6使用redis操作报错Store [redis] not found.
