psychoflea
Programmer
Hi
Is there such a way that you can use an IF Statement within an UPDATE Statement.
Such as:
UPDATE Table 1
IF col1>= 500
SET col1 = col1*2.5
ELSE
SET col1 = col1*1.5
Thanks
Is there such a way that you can use an IF Statement within an UPDATE Statement.
Such as:
UPDATE Table 1
IF col1>= 500
SET col1 = col1*2.5
ELSE
SET col1 = col1*1.5
Thanks