Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

update if else mysql

UPDATE prices
SET final_price= CASE
   WHEN currency=1 THEN 0.81*final_price
   ELSE final_price
END
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #mysql
ADD COMMENT
Topic
Name
4+2 =