Blogger Information
Blog 29
fans 0
comment 0
visits 34504
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Not unique table/alias:
徐郭鹏的博客
Original
1594 people have browsed it

在安礼食品项目中

使用thinkphp5.1模型查询出现  Not unique table/alias:的错误,

解决方法:
1、请检查出现问题位置的 SQL 语句中是否使用了相同的表名,或是定义了相同的表别名。
2、检查 SELECT 语句中要查询的字段名是不是定义重复,或者没有定义。 

自己出现的问题,join的表名写错,同一个表进行join查询

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post