Zaktualizuj część ciągu w MySQL
UPDATE table
SET field = REPLACE(field, 'string', 'anothervalue')
WHERE field LIKE '%string%';
Busy Booby
UPDATE table
SET field = REPLACE(field, 'string', 'anothervalue')
WHERE field LIKE '%string%';
SELECT Country, REPLACE(Country, 'States', 'Kingdom')
FROM Persons;
UPDATE tableName
SET Country = REPLACE(Country, 'States', 'Kingdom')
-- if Country = 'United States'
-- After replace = 'United Kingdom'