scaiferw
07-01-2006, 02:44 PM
I have a table of service clubs with fields I'll call vice_president, president_elect, president, past_president
With the change in operating year, each needs to move to the next, i.e. for each club in the table;
vice_president becomes president_elect
president_elect becomes president
president becomes past_president
(vice_president is left blank.)
Existing values should be over-written.
All fields are VARCHAR(50).
Google and the books I have aren't telling me anything helpful, which probably means I'm being a little bit dense today.
Also, can this be chained together into one statement that I could run on a cron job or something like that at midnight of the changeover day?
Can anyone tell me how to do this?
Many thanks,
Rob
With the change in operating year, each needs to move to the next, i.e. for each club in the table;
vice_president becomes president_elect
president_elect becomes president
president becomes past_president
(vice_president is left blank.)
Existing values should be over-written.
All fields are VARCHAR(50).
Google and the books I have aren't telling me anything helpful, which probably means I'm being a little bit dense today.
Also, can this be chained together into one statement that I could run on a cron job or something like that at midnight of the changeover day?
Can anyone tell me how to do this?
Many thanks,
Rob