So my table is https://i.sstatic.net/kdGp6.jpg. I want to update the name column so that it removes the Telefon mobil part(to look like the first row).
1 Answer
Use REPLACE function, to replace the specific substring with an alternate substring in the name field:
UPDATE table_name
SET name = REPLACE(name, 'Telefon mobil ', '');
2 Comments
RToyo
Only suggestion is that you may want to replace the space after "mobil" as well, so that the text does not have a leading space. IE:
'Telefon mobil '.Madhur Bhaiya
@Rtoyo ya just added that.