执行SQ语句L删除时出错?!

lwc92008 2003-09-14 07:20:03
我使用的是ASP+ACCESS,昨天我在ASP中写删除数据的代码,运行后则提示
Microsoft][ODBC Microsoft Access Driver]
语法错误 (操作符丢失) 在查询表达式 'rebbs where resubject='枫叶'' 中。
-----------
我的全部代码为:
<%
set conn=server.createobject("ADODB.Connection")
conn.open "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("webusers.mdb")
conn.execute("delete rebbs where resubject='论坛公告'")
conn.close
%>
大家帮我看看有什么错吗?要如何改!
...全文
124 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
pysjf 2003-09-14
  • 打赏
  • 举报
回复
少了个from 了 大哥!
wanghr100 2003-09-14
  • 打赏
  • 举报
回复
conn.Execute "DELETE * FROM rebbs WHERE resubject='论坛公告'"

Delete语句:
DELETE [表.*] FROM 表 WHERE标准
ttt2 2003-09-14
  • 打赏
  • 举报
回复
conn.execute("delete from rebbs where resubject='论坛公告'")
cuipeng99 2003-09-14
  • 打赏
  • 举报
回复
conn.execute("delete from rebbs where resubject='论坛公告'")

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧