I have one column in a table that I need to do an update on. In the column the value is a string 'MHB'. What I need the update to do is update all the 'MHB' to 'MHB1' , 'MHB2', 'MHB3' and 'MHB4' then I need it to start over and repeat 'MHB1', 'MHB2', 'MHB3' and 'MHB4'
So if the column has these values:
MHB
MHB
MHB
MHB
MHB
MHB
After the update the column should look like this:
MHB1
MHB2
MHB3
MHB4
MHB1
MHB2
Is there anyway of doing this in one update statement?
If not what is the quickest way of doing this. And when I mean quickest I mean for the whole update to take to complete. Like if we have 500,000 records I would want the shortest time to complete doing all 500,000 records.
Thank you for your help