Jump to content
IgorMM

Requete update table `ps_stock_available`

Recommended Posts

Bonjour, 

 

j'essaye de mettre à jour les quantités de ma table "`ps_stock_available`" à partir d'une autre table copie, 

en comparant les champs id_product, quantity et id_product_attribute

 

voici ma requete, pourriez-vous m'aider à la réécrire.

UPDATE `ps_stock_available` SET `quantity`= (SELECT ps_stock_available.`id_product`, ps_stock_available.`id_product_attribute`, ps_stock_available.`quantity`, ps_stock_available2.`id_product`, ps_stock_available2.`quantity`,ps_stock_available2.`id_product_attribute` FROM `ps_stock_available`, `ps_stock_available2` WHERE ps_stock_available.`id_product`= ps_stock_available2.`id_product`)  where ps_stock_available.`id_product`> 0
 

Cordialemennt,

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More