samyzeze Posted September 11, 2016 Share Posted September 11, 2016 Bonjour j'aimerai savoir comment écrire le code sql suivant en php: UPDATE `ps_orders` INNER JOIN `ps_order_carrier` ON ps_orders.id_order=ps_order_carrier.id_order SET `ps_orders`.`shipping_number` =`ps_order_carrier`.`tracking_number` WHERE `tracking_number` IS NOT NULL ce code copie les numéros de suivis de la table ps_order_carrier vers ps_orders. merci Link to comment Share on other sites More sharing options...
erouvier29 Posted September 11, 2016 Share Posted September 11, 2016 //require(/*PS_ROOT.*/'/config/config.inc.php'); Db::getInstance()->execute('UPDATE...'); Link to comment Share on other sites More sharing options...
Arnaud_69 Posted September 14, 2016 Share Posted September 14, 2016 (edited) Euh... Je me permets de rajouter _DB_PREFIX_... Edited September 14, 2016 by Arnaud_69 (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now