Answers for "mysql update set sum"

SQL
0

mysql update set sum

UPDATE products p,( SELECT products_id, sum(attributes_stock)  as mysum
                   FROM products_attributes GROUP BY products_id) as s

   SET p.products_quantity = s.mysum
  WHERE p.products_id = s.products_id
Posted by: Guest on May-14-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language