解放后冤杀马家军:错误类型:Microsoft JET Database Engine (0x80040E14)UPDATE 语句的语法错误

来源:百度文库 编辑:中科新闻网 时间:2024/04/25 14:19:23
我voteCount.asp第37行为:Command1.Execute()
其中的update语句为:
<%

set Command1 = Server.CreateObject("ADODB.Command")
Command1.ActiveConnection = MM_connVoteSystem_STRING
Command1.CommandText = "UPDATE voteItem SET vote_count = vote_count+1, voteitem_id WHERE voteitem_id = " + Replace(Command1__send_id, "'", "''") + " "
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()

%>

我实在是头疼,找不到错在哪里,希望你能看到尽快答复我,谢谢!
去掉了之后,就变成这样了:
错误类型:
Microsoft JET Database Engine (0x80040E14)
语法错误 (操作符丢失) 在查询表达式 'voteitem_id =' 中。

Command1.CommandText = "UPDATE voteItem SET vote_count = vote_count+1 WHERE voteitem_id = " + Replace(Command1__send_id, "'", "''") + " "

去掉中间的 , voteitem_id