I have a SQL table and want to update one of the columns with an entirely new column of data. I have a list of (ID, value) pairs that looks as follows:
(2336, 21),
(2337, 13),
(2338, 17),
(2339, 20),
(2340, 21),
(2341, 4),
.
.
.
How can I write an SQL statement that will use these to look for each id in the table and replace it with the new value?
For example, it would find the row with id 2336
and replace its value with 21. (value is the name of another column).
I have looked into replace but it doesn't look like that will do the trick.