I've in mysql db two tables:
1) dotable_new;
2) dotable_new_new
Now I need update the value TOTAL in my table dotable_new of value TOTAL in my table dotable_new_new.
I'm trying this update query without success ... can you help me?
UPDATE dotable_new a, dotable_new_new tmp
SET a.total = tmp.total
WHERE
a.rdt IN ('tot mac')
dotable_new;
+---------+---------------+--------+-------+----+
| RDT | TYPE | NUMBER | TOTAL | ID |
+---------+---------------+--------+-------+----+
| tot mac | tot | 3209 | 3249 | 1 |
+---------+---------------+--------+-------+----+
dotable_new_new
+---------+-------+----+
| RDT | TOTAL | ID |
+---------+-------+----+
| tot mac | 10899 | 5 |
+---------+-------+----+