-2

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).

0

1 Answer 1

2

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 ', '');
Sign up to request clarification or add additional context in comments.

2 Comments

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 '.
@Rtoyo ya just added that.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.