蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 应用编程


    

蓝森林 http://www.lslnet.com 2006年8月25日 8:28

[asp]0x80040E14是什么意思?在线等!!!

错误类型:
Microsoft JET Database Engine (0x80040E14)
语法错误。 在查询表达式 'anclassid = (select anclassid from shop_books where bookid = )' 中。
/asp4/gouwu.asp, 第 181 行

第181行是:rs.open sql,conn,1,1

前后为:
<%
                      sql="select top 6 * from shop_books where anclassid =    (select anclassid from shop_books where bookid = "&bookiid&") order by chengjiaocount desc "
              set rs=server.createobject("adodb.recordset")
                      rs.open sql,conn,1,1
    %>
请大虾给点指示!!!

MicrosoftOLEDBProviderforODBCDrivers(0x80040E14)-->sql语句出错(字段名错误,或数据类型不匹配)

输出你的SQL语句后酌情修改

怎么没人啊!
我把
(select anclassid from shop_books where bookid = "&bookiid&")
换成数字后
页面是显示出来了
但是后面的页面的数据不能被正常的使用!
知道的
请给点指教!在线等………………!!!!!
QQ:182441437

esedumike在上个帖子中说
  

不知道你多加个子查询有什么意思
直接
select top 6 * from shop_books where bookid = "&bookid&" order by chengjiaocount desc "
不就完事了?
另外注意红色部分,你是不是打错了?

woochysean在上个帖子中说
   

不知道你多加个子查询有什么意思
直接
select top 6 * from shop_books where bookid = "&bookid&" order by chengjiaocount desc "
不就完事了?
另外注意红色部分,你是不是打错了? [/quote]-->

恩!红色的是错了!!
但是照楼上的方法,还是错误!!!

错误类型:
Microsoft JET Database Engine (0x80040E14)
语法错误 (操作符丢失) 在查询表达式 'anclassid =' 中。
/asp4/gouwu.asp, 第 181 行

让你输出SQL语句你不明白么?

不行啊!
后面的页面是显示出来了
这是个购物的也面,这一页是用来显示购物的的内容
要是用response后,后来的页面——“到收银台付帐.asp”这个页面不能把数据给读出来!!

谢谢各位!!
问题解决!!
在:
[b]sql="select top 6 * from shop_books where anclassid = (select anclassid from shop_books where bookid = "&bookid&") order by chengjiaocount desc " [/b]
前面加了个:
[i]bookid=cint(request.querystring("bookid"))
                          if isnumeric(bookid)=False then
              response.Write("参数错误!")
              response.End()
              end if [/i]




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com