运算符/操作数类型不匹配 [英] Operator/operand type mismatch

查看:186
本文介绍了运算符/操作数类型不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual FoxPro OLE DB 提供程序 查询 VFP 数据库,我得到:

I'm using the Visual FoxPro OLE DB provider to query a VFP DB and I'm getting:

System.Data.OleDb.OleDbException'运算符/操作数类型不匹配`

System.Data.OleDb.OleDbException 'Operator/operand type mismatch`

我可能做错了什么?

推荐答案

在我的 where 子句中,我在一侧有一个 int 和一个 char(15) 在另一边

In my where clause I had an int on one side and a char(15) on the other side

表架构

id int

查询

SELECT *
FROM [some-table]
WHERE id = 'some string'

这篇关于运算符/操作数类型不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆