当前位置:Gxlcms > 数据库问题 > mysql Error:1052 Column 'xxx' in where clause is ambiguous

mysql Error:1052 Column 'xxx' in where clause is ambiguous

时间:2021-07-01 10:21:17 帮助过:29人阅读

Integrity constraint violation: 1052 Column ‘deleted‘ in where clause is ambiguous

 

MySQL查询的时候出现这个错误提示多半是因为:

1.多表查询的时候几个表中同时出现了某个相同的列名,而在查询条件WHERE后面又没有指定是那个表。

2.查询结果里面有两个相同的列名,而没有指定是哪个表。

 

比我我的原因就是查询两张表,每个表都有创建时间,但查询不知到加上哪涨,所以需要重新定位

技术图片

 

mysql Error:1052 Column 'xxx' in where clause is ambiguous

标签:ola   com   code   ted   src   原因   nbsp   big   mysql查询   

人气教程排行