Re: overwrite column data select - Postgres 9.2

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: overwrite column data select - Postgres 9.2
Date: 2016-09-21 05:27:11
Message-ID: bb46b306-6c22-7474-3d6a-216cdfd40810@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 9/20/2016 10:02 PM, Patrick B wrote:
> 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
> <mailto:test(dot)UID(at)example(dot)com>
>
> How can I do that?

update table tablename set email = 'test(dot)UID(at)example(dot)com'; ?

--
john r pierce, recycling bits in santa cruz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Patrick B 2016-09-21 05:56:41 Re: overwrite column data select - Postgres 9.2
Previous Message amul sul 2016-09-21 05:26:27 Re: overwrite column data select - Postgres 9.2