Alibaba2003
Programmer
i need to loop through a recordset or a table. Do some calculations on each row and append the results to multiple tables. What is the recommended approach to do this on the server side. I know cursors are slow and the answer should be stored procedures. How do i loop through the recordset.
How do i refer to columns in the record set.
For those of you familiar with ADO, here is what i am trying to do:
do while not recordsetVariable.eof
variable = table1.field3 + field4
table1!field1value = constant + recordsetVariable!field1value
table1!field2value = variable + recordsetVariable!field1value
recordsetVariable.movenext
loop
thanks
It's Nice to Be Important But It's more Important to BE Nice
How do i refer to columns in the record set.
For those of you familiar with ADO, here is what i am trying to do:
do while not recordsetVariable.eof
variable = table1.field3 + field4
table1!field1value = constant + recordsetVariable!field1value
table1!field2value = variable + recordsetVariable!field1value
recordsetVariable.movenext
loop
thanks
It's Nice to Be Important But It's more Important to BE Nice