I have to code this logic:
UPDATE imported
SET col1 = 'first'
WHERE col2 = 'value one',
SET col1 = 'second'
WHERE col2 = 'value two';
There are going to be multiple updates in one query, so I don’t want to stuff the server by doing update separately for each row
Also: if 2 conditions can be combined, like Where col2=’this’ AND col3=’that’
I’ve added an example of multiple conditions in a
CASEstatement.