I want to do a Update operation to set a new value to Col1. the particular value is dependent on some conditions, Condition1 Condition2.....
I tried a query like the following command, but no luck.
[Code]
Update tbl
SET
Case When
Condition1
THEN Col1=1
When Condition2
THEN Col1=2
END;
I wonder if 'Case When' can only be used in SELECT clauses?
Thanks