我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 =' 中。

一只甜甜圈
浏览 287回答 1
1回答

慕沐林林

Command1.CommandText = "UPDATE voteItem SET vote_count = vote_count+1 WHERE voteitem_id = " + Replace(Command1__send_id, "'", "''") + " "去掉中间的 , voteitem_id
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

MySQL