Re: Concatenate two tables

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: Concatenate two tables
Дата
Msg-id 1039385332.1071.167.camel@linda.lfix.co.uk
обсуждение исходный текст
Ответ на Concatenate two tables  (Alexander Pucher <pucher@atlas.gis.univie.ac.at>)
Список 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 по дате отправления:

Предыдущее
От: Harry
Дата:
Сообщение: Re: Concatenate two tables
Следующее
От: Michael Weaver
Дата:
Сообщение: Default Permissions