Re: update part of a column record

Поиск
Список
Период
Сортировка
От Aras Angelo
Тема Re: update part of a column record
Дата
Msg-id 5136d4130909080954o2c71346sc7e9a5af25d75d84@mail.gmail.com
обсуждение исходный текст
Ответ на update part of a column record  (Marc Fromm <Marc.Fromm@wwu.edu>)
Список pgsql-admin
UPDATE table SET column=REPLACE(column,'@cc.edu','@somethingelse.com');

change "column" to field name respectively.

On Tue, Sep 8, 2009 at 10:46 AM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:

I have a column that contains user email addresses. I need to update all email address in the column that end with @cc.edu to @ss.edu and retain the information (the user name) that exists before the @ symbol. Is there an update query that can edit part of a column record?

 

Marc

 


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

Предыдущее
От: Marc Fromm
Дата:
Сообщение: update part of a column record
Следующее
От: Kevin Kempter
Дата:
Сообщение: partitioning and set statistics