Re: Bulk coying of data from one table to another

Поиск
Список
Период
Сортировка
От Devrim GUNDUZ
Тема Re: Bulk coying of data from one table to another
Дата
Msg-id Pine.LNX.4.44.0306021404470.22058-100000@emo.org.tr
обсуждение исходный текст
Ответ на Bulk coying of data from one table to another  ("shoaib" <shoaibm@vmoksha.com>)
Список pgsql-general
Hi,

On Mon, 2 Jun 2003, shoaib wrote:

> I want to run a process of archival which will delete data form one
> table and insert into another based on date critria.

If you've created the new table; then the following might be useful for
you:

INSERT INTO new_table SELECT * FROM old_table WHERE date_condition;

If you haven't creted the table; then use:

CREATE TABLE new_table AS SELECT * FROM old_table WHERE date_condition.

Regards,
--
Devrim GUNDUZ
devrim@gunduz.org                devrim.gunduz@linux.org.tr
            http://www.tdmsoft.com
            http://www.gunduz.org



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

Предыдущее
От: Jean-Michel POURE
Дата:
Сообщение: Re: PostgreSQL presentation in France
Следующее
От: "shreedhar"
Дата:
Сообщение: Re: Bulk coying of data from one table to another