Answers for "mysql update substract value"

SQL
1

update substring in mysql

SELECT Country, REPLACE(Country, 'States', 'Kingdom') 
FROM Persons;

UPDATE tableName
SET Country = REPLACE(Country, 'States', 'Kingdom')

-- if Country = 'United States'
-- After replace = 'United Kingdom'
Posted by: Guest on December-22-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language