亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

我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 關注
  • 446 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號