changing partial data

Поиск
Список
Период
Сортировка
От Peter Choe
Тема changing partial data
Дата
Msg-id 3B4C9151.1B46EA8C@mindspring.com
обсуждение исходный текст
Ответы Re: changing partial data  ("Thalis A. Kalfigopoulos" <thalis@cs.pitt.edu>)
Список pgsql-general
is there a way in postgres to change just a part of a text data in a
column.  for example if i have a column called description with the
following data:

+---------------------+
| description         |
+---------------------+
| this is a test.     |
+---------------------+

and i want to change the word test to exam, can i just replace the word
test rather than reentrying to who value of the column?

so, instead of:

update foo set description='this is a exam' where description='this is a
test';

can i do something like:

update foo replace test with exam;

peter choe

В списке pgsql-general по дате отправления:

Предыдущее
От: "Thalis A. Kalfigopoulos"
Дата:
Сообщение: Re: Set priority for requests
Следующее
От: "Steve Wolfe"
Дата:
Сообщение: Re: Performance tuning for linux, 1GB RAM, dual CPU?