修改数据库中的多个行 [英] modify multipale rows in database

查看:173
本文介绍了修改数据库中的多个行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

i希望用select选项修改数据库中的多行我正在使用R.update但是它只能更新数据库中的一条记录但是我希望在提交后修改多条记录我必须使用什么代码我正在使用

展开 | 选择 | Wrap | 行号

解决方案

将更新语句置于循环中。您可以使用r1.movenext方法遍历记录集的各个行,然后根据需要修改该行。如果这有帮助,请告诉我。


Jared


PS。你的代码属于这样的代码标签:[code = asp]''code goes here [/ code]


你好,

Jared

当我使用这段代码时,它不报告任何错误或者不更新任何行

所以问题出在哪里

展开 | 选择 | Wrap | 行号


你好,

Jared

当我使用这段代码时,它不报告任何错误或者不更新任何行

所以问题在哪里

另一个代码是

展开 | 选择 | Wrap | 行号

hello
i want to modify multiple rows in database with select option i am using R.update but it can update only one record in database but i wants to more then one record is modify after submit so what code i have to use i am using

Expand|Select|Wrap|Line Numbers

解决方案

Put your update statement within a loop. Youcan loop through various rows of your recordset using the r1.movenext method, then modify that row as desired. Let me know if this helps.

Jared

PS. Your code belongs in code tags like this: [code=asp]''code goes here[/code]


hello,
Jared
when i am using this code it is not report any error or nither update any row
so where is the problems

Expand|Select|Wrap|Line Numbers


hello,
Jared
when i am using this code it is not report any error or nither update any row
so where is the problems
another code is

Expand|Select|Wrap|Line Numbers


这篇关于修改数据库中的多个行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆