为什么总是出现这种错误?
为什么总是出现这种错误
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] 语法错误 (操作符丢失) 在查询表达式 'id=' 中。
/andrew518/del.asp, 第 16 行
到底是什么原因,ID明明存在呀,急!!!!!!!!!!
<%
set Command1 = Server.CreateObject("ADODB.Command") Command1.ActiveConnection = MM_liuyan_STRING Command1.CommandText = "DELETE FROM liuyandata WHERE id=" & Replace(Command1__strid, "", "") & " " Command1.CommandType = 1 Command1.CommandTimeout = 0 Command1.Prepared = true Command1.Execute()
%> 改了还是不行呀
<%
set Command1 = Server.CreateObject("ADODB.Command") Command1.ActiveConnection = MM_liuyan_STRING response.write("Replace(Command1__strid, "", "") ") response.end Command1.CommandText = "DELETE FROM liuyandata WHERE id=" & Replace(Command1__strid, "", "") & " " Command1.CommandType = 1 Command1.CommandTimeout = 0 Command1.Prepared = true Command1.Execute()
%> 加入红色部分看看能输出内容吗