I've been given a list of changes to make to a table. I was wondering how it would be possiblet to make all of the changes in one script...I've tried the following
UPDATE tableA
SET col1 = 'somedata' WHERE col2 = 'somereference'
SET col1 = 'someotherdata' WHERE col2 = 'someotherreference'
SET col1 = 'evenmoredata' WHERE col2 = 'anotherreference'
but this doesn't work. Is there a specific syntax I can use to achieve this, or am I stuck with doing it like this:-
UPDATE tableA
SET col1 = 'somedata' WHERE col2 = 'somereference'
UPDATE tableA
SET col1 = 'someotherdata' WHERE col2 = 'someotherreference'
for each change I want to make?