Re: [GENERAL] copying from one table to another

From: Charles Tassell <ctassell(at)isn(dot)net>
To: Omega Weapon <weapon_77(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] copying from one table to another
Date: 1999-10-06 06:02:51
Message-ID: 4.1.19991006025938.00950750@mailer.isn.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Try something like:

INSERT INTO selection (fieldlist) SELECT fieldlist from temp_section;

SELECT INTO won't work, as it requires you to be creating the destination
table (well, you could drop temp_section first, but that could be annoying.)

At 11:51 PM 10/5/99, Omega Weapon wrote:
>I have two identical tables -- section and
>temp_section. I use the section table for keeping
>original values and temp_section for editing.
>
>How do I copy the values from temp_section to section?
>
>=====
>Weapon
>__________________________________________________
>Do You Yahoo!?
>Bid and sell for free at http://auctions.yahoo.com
>
>************
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Anatoly K. Lasareff 1999-10-06 06:21:21 Re: [GENERAL] copying from one table to another
Previous Message Nikos Mouat 1999-10-06 05:38:11 You are really hosed.