Jump to content

Trying to update Table A with information from Table B...


Jim R

Recommended Posts

Actually, I have two tables:

hhr_schools (my main table)

hhr_email_coaches (has email addresses I want to move into the other table)

 

So I'm trying to merge.  Through some searching, I think I need to use UPDATE, which makes sense.  I don't seem to be getting the syntax right.  Here is what I'm using:

 

UPDATE 'hhr_schools', 'hhr_email_coaches' 
SET 'hhr_schools'.'email'='hhr_email_coaches'.'email'
WHERE 'hhr_schools'.'school'='hhr_email_coaches'.'school';

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.