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 Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.