Thanks rudy. I was actually thinking of branching update values using CASE:
Code:
UPDATE SomeTable
SET col_1 = CASE WHEN <cond 1>
THEN col_1 * 10
WHEN <cond 2>
THEN col_1 * 5
ELSE col_1 END
I wondered if writing "ELSE col_1" makes the execution considerably slow compared to a statement that has "<cond 1> OR <cond 2>" in a WHERE clause. Glad to know that I don't have to worry about it for MySQL. Still, I will wait for info about "da standard" and other DB products.
By the way, what if the ELSE condition were "col_1 * 1"? Maybe SQL is not very good at processing equations?