Re: overwrite column data select - Postgres 9.2

From: amul sul <sulamul(at)gmail(dot)com>
To: Patrick B <patrickbakerbr(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: overwrite column data select - Postgres 9.2
Date: 2016-09-21 05:26:27
Message-ID: CAAJ_b97WgRN17DTnBajXSmn+GcJQcUPTJEppdEnYBOJYR2yJEA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

​First try to get backup using pg_dump & replace all data in email column.

Restore table backup once you done with your testing.

Regards,
Amul.

On Wed, Sep 21, 2016 at 10:32 AM, Patrick B <patrickbakerbr(at)gmail(dot)com>
wrote:

> Hi guys,
>
> I've got a table with email column:
>
>> email CHARACTER VARYING(50) DEFAULT ''::CHARACTER VARYING NOT NULL,
>
>
> There are 30k rows and the email column is not null... there is data in
> there.
> But for testing purpose I need to overwrite the email. So the customer
> won't get an email from me while testing code.
>
> The email could be replaced by: test(dot)UID(at)example(dot)com
>
> How can I do that?
> Thanks!
> Patrick
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2016-09-21 05:27:11 Re: overwrite column data select - Postgres 9.2
Previous Message Patrick B 2016-09-21 05:02:34 overwrite column data select - Postgres 9.2