为了账号安全,请及时绑定邮箱和手机立即绑定

我voteCount.asp第37行为:Command1.Execute()

我voteCount.asp第37行为:Command1.Execute()

一只甜甜圈 2023-01-04 17:13:25
其中的update语句为:<%set Command1 = Server.CreateObject("ADODB.Command")Command1.ActiveConnection = MM_connVoteSystem_STRINGCommand1.CommandText = "UPDATE voteItem SET vote_count = vote_count+1, voteitem_id WHERE voteitem_id = " + Replace(Command1__send_id, "'", "''") + " "Command1.CommandType = 1Command1.CommandTimeout = 0Command1.Prepared = trueCommand1.Execute()%>我实在是头疼,找不到错在哪里去掉了之后,就变成这样了:错误类型:Microsoft JET Database Engine (0x80040E14)语法错误 (操作符丢失) 在查询表达式 'voteitem_id =' 中。
查看完整描述

1 回答

?
慕沐林林

TA贡献2016条经验 获得超9个赞

Command1.CommandText = "UPDATE voteItem SET vote_count = vote_count+1 WHERE voteitem_id = " + Replace(Command1__send_id, "'", "''") + " "
去掉中间的 , voteitem_id

查看完整回答
反对 回复 2023-01-06
  • 1 回答
  • 0 关注
  • 265 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信