Remove trailing and first space from sku
-
14-04-2021 - |
Domanda
I have Magento 2.2.2. Some SKU products contain a trailing space. How to using data patch or MySQL database query which will remove all leading and trailing spaces from SKU products.
Soluzione
UPDATE `catalog_product_entity` SET `sku`=TRIM(`sku`)
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange