主题:还是关于for循环,实在想不通哪错了
我把我实际遇到情况贴出来吧
man=split("张三,李四,王五",",")
for i=0 to ubound(man)
sql="update daoyou set dateS='2007-9-9' where name='"&man(i)&"'"
conn.execute(sql)
response.write man(i)&"<p>"
next
屏显如下:
张三
李四
王五
但数据表实际只执行了当name="张三"这一次
man=split("张三,李四,王五",",")
for i=0 to ubound(man)
sql="update daoyou set dateS='2007-9-9' where name='"&man(i)&"'"
conn.execute(sql)
response.write man(i)&"<p>"
next
屏显如下:
张三
李四
王五
但数据表实际只执行了当name="张三"这一次