(0x80040E07) 标准表达式中数据类型不匹配。
2009-12-17 10:39
323 查看
博物馆软件中遇到的问题
最佳答案
错误内容: 标准表达式中数据类型不匹配。 /ylstudio/gbookdel.asp, 第 6 行 错误代码 <!--#include file="conn.asp" --> <% lid=request(id) sql="select * from book where id=cint('&lid&')" set rs=server.createobject("adodb.recordset") rs.open sql,connstr,3,2 if not rs.eof then rs.delete rs.update response.redirect "ok2.asp" end if %>
最佳答案
sql="select * from book where id=cint('&lid&')" 修改为: sql="select * from book where id="&cint(lid) cint是ASP的函数,不能传给SQL,SQL无法识别
把where id=cint('&lid&')" 或者把where id='&lid&' 改成where id="&cint(lid) 就可以了。
相关文章推荐
- access中带参数sql语句问题~~标准表达式中数据类型不匹配
- 在Access里面,提示出错“标准表达式中数据类型不匹配”,解决方法:
- Access UPdate 标准表达式中数据类型不匹配
- 开发Access数据库提示的"标准表达式中数据类型不匹配",DateTime类型解决办法
- VS2005+ACCESS2003开发中遇到的“标准表达式中数据类型不匹配”问题解决方法
- 标准表达式中数据类型不匹配(Access) - 参数化顺序必须一致!
- 异常:标准表达式中数据类型不匹配
- c# OleDb操作Access时间类型:操作符丢失,或者提示错误“标准表达式中数据类型不匹配
- 标准表达式中数据类型不匹配(Access)
- 关于Access数据库id自增列用update语句报“标准表达式中数据类型不匹配”的问题
- .net程序中出现“标准表达式中数据类型不匹配”错误
- 标准表达式中数据类型不匹配(Access) - 参数化顺序必须一致!
- 向ACCESS中的"时间/日期"字段中插入DateTime.Now时出现“标准表达式中数据类型不匹配。”错误的解决办法
- 用户代码未处理OleDbException:标准表达式中数据类型不匹配
- c#连接access 数据库 出现标准表达式中数据类型不匹配
- C#使用OleDB操作ACCESS插入数据时提示:标准表达式中数据类型不匹配。
- C# 使用access,报错:标准表达式中数据类型不匹配
- Microsoft JET Database Engine 错误 '80040e07' 标准表达式中数据类型不匹配。
- 标准表达式中数据类型不匹配 access
- 关于Access中“标准表达式中数据类型不匹配”的问题