码迷,mamicode.com
首页 > 其他好文 > 详细

ERROR:in where clause is ambiguous

时间:2016-01-22 18:28:27      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:in where clause is ambiguous

    前段时间,在一个系统进行查询条件测试时,输入查询条件,点击查询后界面报错,如图:

技术分享


后台日志也报错,如下图:

技术分享


根据综合分析,in where clause is ambiguous错误确定是MySQL数据库在多表查询的时候几个表中同时出现了某个相同的列名,而在查询条件WHERE后面又没有指定是那个表而引起的,又或者是查询结果里面有两个相同的列名,而没有指定是哪个表。


解决: 使用的时候可以这样,mysql查询前面加表名可避免出现这个错误




本文出自 “半路测试” 博客,请务必保留此出处http://tiantiantesting.blog.51cto.com/10211292/1737615

ERROR:in where clause is ambiguous

标签:in where clause is ambiguous

原文地址:http://tiantiantesting.blog.51cto.com/10211292/1737615

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!