AnaFlorTech
Programmer
Hello,
I have a cursor that have the following data that I select from a table:
Phone_number Event_Id
123 1
123 2
123 3
123 4
What I want to do is to increase a number in the event id every time he does the loop.
So in my loop instruction I want to update the table and what I want to see as a final result is:
Phone_number Event_Id
123 2
123 4
123 6
123 7
But I am doing this wrong, because the result appear as following:
Phone_number Event_Id
123 5
123 6
123 7
123 8
Can you help me doing the update instruction, so it can be correct?
Thanks.
I have a cursor that have the following data that I select from a table:
Phone_number Event_Id
123 1
123 2
123 3
123 4
What I want to do is to increase a number in the event id every time he does the loop.
So in my loop instruction I want to update the table and what I want to see as a final result is:
Phone_number Event_Id
123 2
123 4
123 6
123 7
But I am doing this wrong, because the result appear as following:
Phone_number Event_Id
123 5
123 6
123 7
123 8
Can you help me doing the update instruction, so it can be correct?
Thanks.