I have two tables
threads table
_id recipient_id type
1 1
2 1
3 2
and addresses table
_id address
1 HELLO
2 BYE
recipient_id is mapped to addresses table’s _id
I need to update type to a specific value if address is HELLO. How do i do it? I have already tried
UPDATE threads SET threads.type = 106 FROM threads
INNER JOIN
addresses ON addresses._id = threads.recipient_ids
AND
addresses.address LIKE '%HELLO%';
But i am getting an error near ".": syntax error .
What is the correct syntax to update a column?
You can use the
INoperator: