Re: to copy a record

From: "Jay O'Connor" <joconnor(at)cybermesa(dot)com>
To: jim(at)nasby(dot)net, pgsql-general(at)postgresql(dot)org
Subject: Re: to copy a record
Date: 2003-06-04 22:50:29
Message-ID: 20030604155029.I874@altaica
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2003.06.04 12:48 Jim C. Nasby wrote:
> SELECT * INTO TEMP temp_table FROM blah;
> UPDATE temp_table SET field = newvalue;
> INSERT INTO blah SELECT * FROM temp_table;

Looks sweet. Much simpler what I was doing, too

Thanks

Take care,
Jay

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message terry 2003-06-04 22:50:35 Re: Nulls get converted to 0 problem
Previous Message Avi Schwartz 2003-06-04 22:22:29 Re: Nulls get converted to 0 problem