Jump to content

Artikelnummer samma som Produktid


Recommended Posts

  • 3 weeks later...

En update-sats i SQL borde fungera.

 

UPDATE ps_product SET reference=id_product;

 

Används givetvis på egen risk!

 

Men hur hade du tänkt dig med eventuella attribut? Hade tänkt något i stil med "Product_id"-"Id_Produkt_attribute"?

 

UPDATE ps_product_attribute SET reference=concat(Id_Product,'-',Id_Product_attribute)

 

//Magnus

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...