首页> 实战笔录 >PHP开发笔记 >ThinkPHP ThinkPHP
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Attr_id' in 'where clause'
作者:小萝卜 2021-05-06 【 TP5 】 浏览 1798
简介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)
相关文章
- TP5.0 给图片加文字水印怎么控制文字的透明度
- TP5.1模板继承
- TP6权限管理 Auth库的使用
- TP6批量打包下载文件图片
- TP6报错:Non-static method think\Request::controller() should not be called statically
- TP6 TP5一键生成sitemap站点地图索引文件 代码分享
- TP3.2使用join查询实例以及注意事项
- TP6上传图片验证时报错think\\Validate::check() must be of the type array
- TP5/TP6按驼峰命名了控制器和方法,运行时报错找不到模板文件
- TP6使用redis操作报错Store [redis] not found.