Einzigartige Nummer für jede MySQL Zeile vergeben
SET @r := 0; UPDATE table SET number = (@r := @r + 1) ORDER BY RAND();
Beispiel: Unique Nummern als SKU’s unter Magento verwenden:
SET @r := 0; UPDATE catalog_product_entity SET sku = (@r := @r + 1) ORDER BY RAND();
Sorry, the comment form is closed at this time.