UPDATE table1 FROM table2
| From: | m0sh3 | Date: | Fri, 02 Nov 2001 11:14:59 +0000 |
| Subject: | UPDATE table1 FROM table2 | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-13929@lists.php.net to get a copy of this message | ||
In MySQL 3.23, how to update one table using information from another table.
update table1 set value1=t2.value2
from table1 as t inner join table2 as t1 using(pk_key) ???
or
update table1 as t1 inner join table2 as t2 using(pk_key)
set t1.value1=t2.value2 ???
Is it possible at all?
Thank you