siomosp Posted May 24, 2012 Share Posted May 24, 2012 Hi i am looking for a sql query for updating all products of a specific category and language something like that UPDATE ps_product_lang SET description_short='<h3>test</h3>' WHERE ps_category_product.id_category = '5' AND ps_product_lang.id_lang=2 Any help? Link to comment Share on other sites More sharing options...
i2imedia Posted May 24, 2012 Share Posted May 24, 2012 Have you tried calling the table names first and then giving them a alias? I called the tables a and b. UPDATE ps_product_lang a, ps_category_product b SET description_short='<h3>test</h3>' WHERE b.id_category = '5' AND a.id_lang=2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now