Re: Concatenate two tables - Mailing list pgsql-novice

From Oliver Elphick
Subject Re: Concatenate two tables
Date
Msg-id 1039385332.1071.167.camel@linda.lfix.co.uk
Whole thread Raw
In response to Concatenate two tables  (Alexander Pucher <pucher@atlas.gis.univie.ac.at>)
List pgsql-novice
On Sun, 2002-12-08 at 21:38, Alexander Pucher wrote:
> Hi,
>
> I have two tables with identical table stucture. How can i add all rows
> from table2 into table1, i.e concatenate the two tables.

INSERT INTO table1 (SELECT * FROM table2);

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "For I am the LORD your God; ye shall therefore
      sanctify yourselves, and ye shall be holy; for I am
      holy."          Leviticus 11:44


pgsql-novice by date:

Previous
From: Harry
Date:
Subject: Re: Concatenate two tables
Next
From: Michael Weaver
Date:
Subject: Default Permissions