Re: [GENERAL] copying from one table to another - Mailing list pgsql-general

From tolik@aaanet.ru (Anatoly K. Lasareff)
Subject Re: [GENERAL] copying from one table to another
Date
Msg-id 877ll13t7i.fsf@tolikus.hq.aaanet.ru
Whole thread Raw
In response to copying from one table to another  (Omega Weapon <weapon_77@yahoo.com>)
List pgsql-general
>>>>> "OW" == Omega Weapon <weapon_77@yahoo.com> writes:

 OW> I have two identical tables -- section and
 OW> temp_section.  I use the section table for keeping
 OW> original values and temp_section for editing.

 OW> How do I copy the values from temp_section to section?

begin;

delete from section;
insert into section select * from temp_section;

commit;


pgsql-general by date:

Previous
From: Charles Tassell
Date:
Subject: Re: [GENERAL] copying from one table to another
Next
From: "Gene Selkov, Jr."
Date:
Subject: Yet another btree gotcha