I have 123 456 789 and i don’t know how i can replace with this values 999 888 777.
I want to avoid an update query for each case, because i have many values to replace.
table_A
id
123
456
789
...
table_A
id
999
888
777
...
I need an alternative to this type of query.
UPDATE table_A
SET id=999
WHERE id=123
You can do it using
CASE, like this: