Update w/ join not working
I can not figure out why my update will not work. Can any one help me?
I am trying to update a column in one table with a column from another table. Here are the 2 statements I am using and the returned error. I am using mysqlcc if that makes any difference.
update xcart_products inner join xcart_images on xcart_products.productid = xcart_images.productid set xcart_products.alt = xcart_images.alt
ERROR 1064: You have an error in your SQL syntax near 'inner join xcart_images on xcart_products.productid = xcart_images.productid set' at line 1
update xcart_products, xcart_images set xcart_products.alt = xcart_images.alt where xcart_products.productid = xcart_images.productid
ERROR 1064: You have an error in your SQL syntax near ' xcart_images set xcart_products.alt = xcart_images.alt where xcart_products.p' at line 1
Subject
Written By
Posted
Update w/ join not working
August 13, 2004 01:49PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.