Question
Looping an Update Query
Hi,
This seems like it should be pretty straightforward but I'm new to ColdFusion and cannot get this working at all.
I want to update a column in a database with an incremented variable in a loop. I want to be able to do this for a date column eventually (increment to next day) but I cannot get even this basic query below to work.
The query is attached below
What I want this to do is loop through the Team table starting at row 1 and update the players shirt number from 1 to 11.
At the moment all shirt numbers are set to 11.
Any guidance on this would be greatly appreciated.
thanks in advance
This seems like it should be pretty straightforward but I'm new to ColdFusion and cannot get this working at all.
I want to update a column in a database with an incremented variable in a loop. I want to be able to do this for a date column eventually (increment to next day) but I cannot get even this basic query below to work.
The query is attached below
What I want this to do is loop through the Team table starting at row 1 and update the players shirt number from 1 to 11.
At the moment all shirt numbers are set to 11.
Any guidance on this would be greatly appreciated.
thanks in advance
