I was using UPDATE SET REPLACE in order to replace certain content of a name in many registries but for some reason is not working now.
UPDATE stores
SET tit_doc = REPLACE( tit_doc, 'WORKSHOP WEST COAST NUMBER 3', ' ' )
WHERE store_loc LIKE "%3A12%"
This way I replace 'WORKSHOP WEST COAST NUMBER 3' with nothing, so basically remove that from all the registries selected, but it shows
Affected rows: 0 (Query took 0.1036 sec)
I did try
SELECT REPLACE (tit_doc, 'WORKSHOP WEST COAST NUMBER 3', ' ' ) replace_result
FROM stores
WHERE store_loc LIKE "%3A12%"
ORDER BY `replace_result` ASC
LIMIT 0 , 30
and it shows
Showing rows 0 - 29 (50 total, Query took 0.0609 sec)
And displays all the registries that have those characters in the location asked.
How can I do this correctly?