ASP中的错误信息
来源:百度知道 编辑:UC知道 时间:2024/06/27 15:22:28
Microsoft JET Database Engine 错误 '80040e14'
语法错误 (操作符丢失) 在查询表达式 'songid=' 中。
/jszx.asp,行 605
--------------------------------------------------------
rs.open "select * from shop_songhuofangshi where songid="&request("songhuofangshi"),conn,1,1
语法错误 (操作符丢失) 在查询表达式 'songid=' 中。
/jszx.asp,行 605
--------------------------------------------------------
rs.open "select * from shop_songhuofangshi where songid="&request("songhuofangshi"),conn,1,1
这个问题我遇到过.你只要把表名用[]刮起来就没问题了呵呵.上面改成:
rs.open "select * from [shop_songhuofangshi] where songid="&request("songhuofangshi"),conn,1,1
sql="select * from shop_songhuofangshi where songid='"&request("songhuofangshi")&"'"
conn.Execute sql
rs.open sql,conn,1,1
在这句前面加上
response.write request("songhuofangshi")
response.end
看看request("songhuofangshi")是否正确取得值