hc Posted September 18, 2006 Share Posted September 18, 2006 Any idea why this returns an error ofERROR: syntax error at or near "ims" at character 27UPDATE imports.menssoccer imsSET employee_id = uem.idFROM ims JOIN users.employees uem ON ims.ssn = uem.tax_idAny help would be appreciated. Thankshc Link to comment https://forums.phpfreaks.com/topic/21203-update-with-a-join-statement/ Share on other sites More sharing options...
btherl Posted September 19, 2006 Share Posted September 19, 2006 I don't think you can give an alias to the table being updated.How about:UPDATE imports.menssoccerSET employee_id = uem.idFROM users.employees uemWHERE employee_id = uem.tax_id Link to comment https://forums.phpfreaks.com/topic/21203-update-with-a-join-statement/#findComment-94334 Share on other sites More sharing options...
hc Posted September 19, 2006 Author Share Posted September 19, 2006 that works thank you very much Link to comment https://forums.phpfreaks.com/topic/21203-update-with-a-join-statement/#findComment-94376 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.