I need to update the column B
in a table, which has a column A
as the primary key, with the a different value for each value in column A
. There are about 50,000 rows to be updated in the table, which makes it impossible to do this manually. Is there any other way to update it?
Of all the records in the table, I want to update just 50000. For each record among these 50,000, the value to be updated is different. How can I update the table without having to write 50,000 update queries?
Column A. Column B
One. 1
Two 2
Three 3
I want to update one=4
, two=5
and so on for about 50,000 rows.
Thanks in advance guys!