SELECT
a_fees a
a_temp b
SET
b.fee_source_id = a.fee_source,
b.filing_date = a.filingdate
WHERE
b.fee_id = a.fee_id;
SELECT a_fees a a_temp b SET b.fee_source_id = a.fee_source, b.filing_date = a.filingdate WHERE b.fee_id
Share
MySQL syntax for a multiple table update:
See it working online: sqlfiddle
Using an
INNER JOIN:See it working online: sqlfiddle