In phpMyAdmin, I want to have my code copy one field from one table to another table based on a different field that matches between the two tables. I'm missing something.
When I type:
SELECT *
FROM old_email e,
old_contact c
WHERE e.contact_id = c.id;
I get 1793 records.
When I type:
UPDATE old_email
SET old_email.first = old_contact.first_name
FROM old_email
INNER JOIN old_contact
ON old_email.contact_id = old_contact.id
MySQL said: Documentation
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM old_email
INNER JOIN old_contact ON old_email.contact_id = old_contact.id' at line 3