Jump to content

Update Id_Carrier_Reference Using Sql


Recommended Posts

Hi, I am hoping that someone may be able to help me. I am trying to update the "Selected Carriers" in products by using SQL.

 

I have just set up three carriers which need to be "selected carriers" for all products as they cover different weights. 

 

I can update the selected carriers with one carrier (see below)

 

UPDATE ps_product_carrier SET id_carrier_reference=2 WHERE id_product=10

 

but I cannot work out the correct syntax for updating three carriers with a ID Carrier reference of "2", "26" and "29".

 

I thought it might be something like:

 

UPDATE ps_product_carrier SET id_carrier_reference='2', '26', '29' WHERE id_product=10

 

but this doesn't work.

 

Does anyone have any ideas.

 

Thanks

 

Simon

Edited by simon76 (see edit history)
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...