asp批量添加数据的问题!

[复制链接]
查看11 | 回复1 | 2006-5-15 17:21:42 | 显示全部楼层 |阅读模式
方法一:rs.update "xiaolunwen",'tempxiaolunwen' rs.update "pingshi",'temppingshi' 改为:rs("xiaolunwen")=tempxiaolunwenrs("pingshi")=temppingshirs.update方法二:直接用conn语句试试,所有代码改成:Num=request.form("userid").count for i=1 to Num conn.execute("update [oblog_user] set xiaolunwen="&tempxiaolunwen&"',pingshi='"&temppingshi&" where userid="&request.form("userid")(i) next方法二的错误,你说得更具体一点好吧,比如说张三,李四同时符合要求,他们的年龄是....我觉得这就不是代码本身的问题,是tempxiaolunwen和temppingshi的数据在赋值时算法出了问题
回复

使用道具 举报

千问 | 2006-5-15 17:21:42 | 显示全部楼层
rs.update "xiaolunwen",'tempxiaolunwen' rs.update "pingshi",'temppingshi' 改为: rs.addnew()rs("xiaolunwen")=tempxiaolunwen rs("pingshi")=temppingshi rs.update()
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行