workaround for lack of REPLACE() function

Поиск
Список
Период
Сортировка
От Agent155 Support
Тема workaround for lack of REPLACE() function
Дата
Msg-id 00de01c2285d$425f5a10$6601a8c0@home
обсуждение исходный текст
Ответы Re: workaround for lack of REPLACE() function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi,
 
I looked around for a definitive answer to this question but to no avail.  It appears that PostgreSQL does not implement the SQL function REPLACE() , which, in MySQL works like this:
 
REPLACE(str,from_str,to_str)
Returns the string str with all all occurrences of the string from_str replaced by the string to_str:
 
What do folks usually do when they have to do a global search/replace on a big table?
 
Thanks,
 
Matt

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

Предыдущее
От: Mark O'Connor
Дата:
Сообщение: Re: XML to Postgres conversion
Следующее
От: sarah.fraser@cnet.com (builder)
Дата:
Сообщение: MySQL vs. PostgreSQL