Answers for "trigger vérifier stock"

SQL
0

trigger vérifier stock

 
BEGIN
 
UPDATE `product` 
    SET `price` =  NEW.price
    , `quantity` = NEW.quantity 
    , date_modified = NOW() 
    WHERE `product_id` = NEW.product_id;
    AND price > NEW.price 
    AND quantity > 0
;
 
END
Posted by: Guest on May-24-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language