Answers for "if exist else update mysql"

0

MySQL update if exists else insert

INSERT INTO tableName(id, NAME, score)
VALUES(1, "Fadl", 285)
ON DUPLICATE KEY
UPDATE NAME = "Fadl", score = 285
Posted by: Guest on May-24-2021
0

update if else mysql

UPDATE prices
SET final_price= CASE
   WHEN currency=1 THEN 0.81*final_price
   ELSE final_price
END
Posted by: Guest on August-10-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language