首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

这句sql语句,提示标准表达式中数据类型不匹配,怎么解决

2012-01-23 
这句sql语句,提示标准表达式中数据类型不匹配,如何解决?select*frominfowherephotonotin(selectidfromuser

这句sql语句,提示标准表达式中数据类型不匹配,如何解决?
select   *   from   info     where     photo     not   in   (   select   id   from   userlist     )  

photo是文本型,id是数字型,
提示标准表达式中数据类型不匹配,
数据库是access,该如何解决?

[解决办法]
select * from info where photo not in (select CStr(id) from userlist )

热点排行