Jump to content
xt:Commerce Community Forum

SQL Updatebefehl für Artikelgwicht


Recommended Posts

Hallo zusammen,

ich bin gerade an einer Migration von xt:4 auf xt:6, nun habe ich das Problem das mir die Gewichte der Artikel nicht in die Datenbank übernommen wurden,
diese würde ich jetzt gerne per SQL Update Befehl nachträglich aktualisieren, ich habe einen Dump der bestehenden Datenbank gemacht, hier habe ich das products_model und das products_weight exportiert.

Das sieht dann so aus:

INSERT INTO `xt_products` (`products_model`, `products_weight`) VALUES
('109', '0.0000'),
('109-01', '0.0000'),
('109-02', '0.1000'),
('109-03', '11.0000'),
('109-04', '0.0000'),
('109-05', '0.0000'),
('109-06', '0.0000'),
('109-07', '0.0000'),
('158', '0.0000'),
('158-01', '0.0000'),
('158-02', '0.0000'),
('158-03', '0.0000'),
('158-04', '0.0000'),
('158-05', '11.0000'),

usw...

Es sollte doch nun über einen Update Befehl möglich sein, die Gewichte abzugleichen, ich habe keinen Befehl gefunden der quasi das Products_modell miteinander vergleicht und dann entsprechend die Gewichte aktualisiert.

Kann mir da jemand helfen ?

Ich wäre euch sehr dankbar.

Gruß

Coobi

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
  • Create New...