Re: SELECT INTO but append not create new table - How?

Поиск
Список
Период
Сортировка
От Alan T. Miller
Тема Re: SELECT INTO but append not create new table - How?
Дата
Msg-id 028301c3e548$24436b30$640a0a0a@webdev
обсуждение исходный текст
Ответ на SELECT INTO but append not create new table - How?  ("Alan T. Miller" <amiller@hollywood101.com>)
Список pgsql-novice
Thanks, just what I needed :)

Alan


----- Original Message -----
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "Alan T. Miller" <amiller@hollywood101.com>
Cc: <pgsql-novice@postgresql.org>
Sent: Tuesday, January 27, 2004 7:28 PM
Subject: Re: [NOVICE] SELECT INTO but append not create new table - How?


> "Alan T. Miller" <amiller@hollywood101.com> writes:
> > I messed around with the 'INSERT INTO' SQL command, but this assumes
that
> > the table you are 'selecting into' does not exist and you want to create
> > that table. My problem is that the table exists and I just want to
append
> > the information to the archive table.
>
> I think you are looking for INSERT ... SELECT.  See the INSERT man page
> or any book about SQL.
>
> regards, tom lane
>



В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SELECT INTO but append not create new table - How?
Следующее
От: "Phil Seretti"
Дата:
Сообщение: Install or Bust - pgsql on Red Hat 9