| От | Dawn Buie |
|---|---|
| Тема | how to do a find and replace |
| Дата | |
| Msg-id | 5d001d303f001ea0847254c3f0a352d9@squeegeemedia.com обсуждение |
| Ответ на | timestamp SQL question (Brian Doyle <bdoyle@localmatters.com>) |
| Ответы |
Re: how to do a find and replace
|
| Список | pgsql-sql |
Hello- I'm using postgres 7.4 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера