Jump to content

Update product descriptions of a specific category


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...