WayneGretzky
Programmer
How can I loop through each field in the current record in a cursor?
I need to essentially do 2 loops. One loops through each record and then inside each record row, I want to perform an insert on each column.
Something like this maybe using a cursor or something else:
For each record in my table (I'll just use the cursor)
For each column in current record for cursor
perform some sql based on the current column value
Next
Next
I guess I just want to know how to do the for each column to cycle through each field in the current cursor's record.
I need to essentially do 2 loops. One loops through each record and then inside each record row, I want to perform an insert on each column.
Something like this maybe using a cursor or something else:
For each record in my table (I'll just use the cursor)
For each column in current record for cursor
perform some sql based on the current column value
Next
Next
I guess I just want to know how to do the for each column to cycle through each field in the current cursor's record.