Microsoft][ODBC Microsoft Access Driver] 语法错误 (操作符丢失) 在查询表达式 'n_ID =' 中
<%setCommand1=Server.CreateObject("ADODB.Command")Command1.ActiveConnection=MM_news_S...
<%
set Command1 = Server.CreateObject("ADODB.Command")
Command1.ActiveConnection = MM_news_STRING
Command1.CommandText = "UPDATE news SET n_hits = n_hits+1 WHERE n_ID = " + Replace(Command1__news_id, "'", "''") + ""
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()
%> 展开
set Command1 = Server.CreateObject("ADODB.Command")
Command1.ActiveConnection = MM_news_STRING
Command1.CommandText = "UPDATE news SET n_hits = n_hits+1 WHERE n_ID = " + Replace(Command1__news_id, "'", "''") + ""
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()
%> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询