标题:请大家指点一下如何改正.多谢
取消只看楼主
xinjiye
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2009-11-11
结帖率:100%
 问题点数:0 回复次数:1 
请大家指点一下如何改正.多谢
Microsoft JET Database Engine (0x80040E14)语法错误 (操作符丢失) 在查询表达式 'Id = or SubjectId

代码如下

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/BBS1.asp" -->
<%

if(Request("id") <> "") then Command1__MM_id = Request("id")

%>
<%

set Command1 = Server.CreateObject(")
Command1.ActiveConnection = MM_BBS1_STRING
= "DELETE FROM 论坛  where Id = " + Replace(Command1__MM_id, "'", "''") + " or SubjectId = " + Replace(Command1__MM_id, "'", "''") + " "
= 1
= 0
Command1.Prepared = true
Command1.Execute()

%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<meta http-equiv="refresh" content="2;URL=index1.asp">
</head>
<body bgcolor="#FFFFFF">
已经成功删除帖子,2秒钟后自动返回论坛
</body>
</html>

搜索更多相关主题的帖子: 操作符  
搜索更多相关主题的帖子: 查询 Microsoft Request include 
2009-11-12 19:49
xinjiye
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2009-11-11
得分:0 
谢谢各位
谢谢大家.
2009-11-13 22:36



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-292098-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.064282 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved