Question

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.

Était-ce utile?

La solution

UPDATE `catalog_product_entity` SET `sku`=TRIM(`sku`)
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top