0
Dim prestaDB
prestaDB = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=mysql50-64.wc1;PORT=3306;DATABASE=example_db;USER=example_user;PASSWORD=example_password;OPTION=3;"
set conn = Server.CreateObject("ADODB.Connection")
conn.open prestaDB
conn.execute("update ps_product set quantity = " & sSeg(4) & " where reference = '%" & sSeg(0) &"%'")
的代码集的其余部分:ASP - mysql的不更新记录
sSeg(4) = 5
sSeg(0) = "N540"
N540是我的数据库
当这个执行一个有效的参考,它提供了没有错误但数量不更新为5。
服务器运行MySQL 5
任何想法出了什么问题?
这奏效了,谢谢:) – kelbyuk 2010-10-06 22:18:39