E
E
emerysh2017-07-09 14:33:56
PHP
emerysh, 2017-07-09 14:33:56

How to update data from one table to another?

Good day, comrades! Please advise on the best way to do it.
The goal is to update data from one table to another. From temporary to permanent.
Here is the code I generated but it doesn't work:

UPDATE `price` INNER JOIN `tmp_price` ON `price`.`name` = `tmp_price`.`name` SET `price`.`n_price` = `tmp_price`.`p` WHERE `price`.`name` = `tmp_price`.`name`"

You are welcome

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question