I need to update two tables with the same WHERE clause. The WHERE clause has hundreds of IDs so I want to avoid writing it twice like this...
UPDATE TABLE1
SET (values...)
WHERE ID in (list of IDs)
UPDATE TABLE2
SET (values...)
WHERE ID in (list of IDs) -- this is the same statement as above
Is there a way to merge these with one WHERE statement?