Answer the question
In order to leave comments, you need to log in
How to write a query in MySQL to bulk edit the content of a specific TV field in MODX?
Hello.
Actually a site on MODX with a bunch of product positions. Each product has a TV field with a price. The price is written everywhere with a comma, and for two or three it turned out with a dot. It takes a very long time to search with pens, but you need to change the dot to a comma everywhere.
I am not at all familiar with SQL queries, but I realize that this task can (and probably should) be solved in this way. I would be very grateful for help.
I found this code, but I don't quite understand how to apply it in my case:
UPDATE Имя таблицы
SET Имя поля
REPLACE(Имя поля, 'строка для замены', 'чем заменяем');
Answer the question
In order to leave comments, you need to log in
UPDATE bsm_site_tmplvar_contentvalues
SET value = REPLACE(value, '.', ',')
WHERE tmplvarid = 11
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question