にどのように私はLaravel 5.2でこのクエリを行うことができます。、サブクエリはどこ更新
UPDATE product p
SET price = (SELECT price FROM product_price WHERE product_id = p.id AND price > 0 AND inventory > 0 AND active = 1 ORDER BY price desc limit 1)
SET discounts = (SELECT discount FROM product_price WHERE product_id = p.id AND price > 0 AND inventory > 0 AND active = 1 ORDER BY price desc limit 1)
WHERE
product_state = 1
私はデシベルでこれを実行することができますか?
この文書のどの行を私の答えとすることができますか? :) –