I’d like to do something like this:
Suppose I have two tables, myTable1 and myTable2. Suppose both of these tables have columns myColumn1 and myColumn2.
update
myTable1
set
myTable1.myFlagColumn = 1
where
myTable1.myColumn1, myTable1.myColumn2
in
(select myTable2.myColumn1, myTable2.myColumn2 from myTable2)
Essentially, I want to change a value in myTable1 if there are any rows where the two columns in myTable1 and myTable2 match.
Is this possible?
Yes, but you will use an EXISTS clause: