葫芦品种:ASP数据更新问题

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/29 12:55:58
sql="update online set online=0,datetime='"&now()&"' where id="&session.sessionID&""
conn.execute(sql)

Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] UPDATE 语句的语法错误。
/head.asp, 第 19 行
还是这样哈
--------------

var noww as string
noww=cstr(now())
sql="update online set online=0,datetime='"noww"' where id="&session.sessionID

sql="update online set online=0,datetime='"&now()&"' where id='"&session.sessionID&"'"