G
G
Gennick's Macleo2019-05-23 22:19:54
MySQL
Gennick's Macleo, 2019-05-23 22:19:54

How to remove the extra word in the product name?

There is a product name, for example:
Sofa Model "Sun".
So you need to remove the word "Sofa" in the database only in the name of the product. Positions 1300, hands very long. Is there a MySQL console command for WooCommerce or a plugin?
Who will tell?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
coderisimo, 2019-05-23
@Genice

The poor sofa will be mercilessly deleted in the product field in the table_name table
UPDATE table_name SET product = REPLACE(product, 'Sofa', '')

S
serginhold, 2019-05-23
@serginhold

update + replace https://dev.mysql.com/doc/refman/8.0/en/string-fun...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question