/ Published in: SQL
The inner join could be nested too
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
UPDATE revisions AS target INNER JOIN (SELECT revision_id AS rev_id, id AS f_id FROM tmp2) AS SOURCE ON target.id = SOURCE.rev_id SET target.file_de_id = SOURCE.f_id;