Re: How to copy a table?

Поиск
Список
Период
Сортировка
От Zak McGregor
Тема Re: How to copy a table?
Дата
Msg-id 200103270337.FAA03309@zak.home.dom
обсуждение исходный текст
Ответ на How to copy a table?  ("Jeff" <jklcom@mindspring.com>)
Список pgsql-general
On Mon, 26 Mar 2001 21:21:12 -0500
"Jeff" <jklcom@mindspring.com> wrote:

> Hi,
>
> Can some one show me what's the best way to backup a table or copy a table?

Backing up is simple with pg_dump and pg_dumpall.

Copying a table (assuming within the same database) is also easy:

create table test as select * from other_table;


HTH

Zak

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

Предыдущее
От: Zak McGregor
Дата:
Сообщение: Re: How to auto create a unique key for each newly added record?
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: records zapped to null