mysql Column 'dbvalue' in where clause is ambiguous解决方案
2016-03-15 18:08
519 查看
在一次使用mysql数据库查询的时候出现错误提示 Column 'languageid' in where clause is ambiguous,这个错误in where clause is ambiguous多半是因为多表查询的时候几个表中同时出现了某个相同的列名,而在查询条件WHERE后面又没有指定是那个表,而引起的
又或者是查询结果里面有两个相同的列名,而没有指定是哪个表
使用的时候可以这样,mysql查询前面加表名可避免出现错误Column 'languageid' in where clause is ambiguous
SELECT tablea.id aid table.id bid WHERE tablea.id = tableb.id
又或者是查询结果里面有两个相同的列名,而没有指定是哪个表
使用的时候可以这样,mysql查询前面加表名可避免出现错误Column 'languageid' in where clause is ambiguous
SELECT tablea.id aid table.id bid WHERE tablea.id = tableb.id
相关文章推荐
- Android Handler处理机制 ( 三 ) ——Handler,Message,Looper,MessageQueue
- MySQL提示:The server quit without updating PID file问题的解决办法
- IOS学习之在NSURLRequest中设置cookies
- UIPickerView控件中自定义 及 改变当前选中的Item的字体颜色
- iOS 特殊类 UIControl
- Java实现的Sequence工具
- WebApi设置SessionState为Required
- 关于serialVersionUID的说明
- POJ 3709 K-Anonymous Sequence
- 2016-03-15 uitextview placehold
- iOS 8 中UIAlertController使用
- Android-UI层的三种框架模式-MVC、MVP、MVVM
- Ultra-QuickSort
- iOS UIView 一些属性方法总结
- Get value from agent failed: cannot connect to [[192.168.1.110]:10050]: [113] No route to host
- 解决The current branch is not configured for pull No value for key branch.master.
- Android stuido中更改图片编辑软件
- 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique:
- 使用Arduino读取水位传感器数据
- UITextView:定制选中文字的菜单和用代码选择文字