Re: update part of a column record

From: Aras Angelo <araskoktas(at)gmail(dot)com>
To: Marc Fromm <Marc(dot)Fromm(at)wwu(dot)edu>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: update part of a column record
Date: 2009-09-08 16:54:34
Message-ID: 5136d4130909080954o2c71346sc7e9a5af25d75d84@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)Fromm(at)wwu(dot)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
>
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Kempter 2009-09-08 20:59:16 partitioning and set statistics
Previous Message Marc Fromm 2009-09-08 16:46:14 update part of a column record