0 votes
1 view
in SQL by (6.1k points)

1 Answer

0 votes
by (12.7k points)

You can use the below code:

UPDATE your_table
SET your_field = REPLACE(your_field, 'articles/updates/', 'articles/news/')
WHERE your_field LIKE '%articles/updates/%'

Now rows that were like

http://www.example.com/articles/updates/43

Will be 

http://www.example.com/articles/news/43

Want to become a SQL Expertise? You can register to this SQL Course and get certified.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...