how to do a find and replace - Mailing list pgsql-sql

From Dawn Buie
Subject how to do a find and replace
Date
Msg-id c051e0b633ba9015ecd98f6c038783e0@squeegeemedia.com
Whole thread Raw
Responses Re: how to do a find and replace
Re: how to do a find and replace
List pgsql-sql
Hello-

I have a column of data with the wrong prefix for many items.

The wrong entries are entered ' /0/v.myimage.jpg'
While the correct ones are ' /0/myimage.jpg'


I need to remove all the 'v.' characters from this column.


I'm able to do a

SELECT * FROM myTable
WHERE location = '%/0/v.%'


I'm just confused about how I should write code to update the selected 
items to remove the 'v.'

Would I use substring? An example would be much appreciated.

thank you
Dawn



pgsql-sql by date:

Previous
From: Dawn Buie
Date:
Subject: how to do a find and replace
Next
From: Bricklen Anderson
Date:
Subject: Re: how to do a find and replace