Export a database or a table from a database

Поиск
Список
Период
Сортировка
Искать

Export a database or a table from a database

От:
"Stefan Kowalski" <Stefan.Kowalski@ixtra.com>
Дата:
Hello,

I want to export a database or a table from a database.
There is a possibility the copy the data from the table, but
I need the whole structure include the data.

Regards
Stefan


Export a database or a table from a database

От:
Lee Kindness <lkindness@csl.co.uk>
Дата:
Read the documentation, in particular look for 'pg_dump'.

Lee.

Stefan Kowalski writes:
 > I want to export a database or a table from a database.
 > There is a possibility the copy the data from the table, but
 > I need the whole structure include the data.

Re: Export a database or a table from a database

От:
Doug McNaught <doug@wireboard.com>
Дата:
"Stefan Kowalski"  writes:

> I want to export a database or a table from a database.
> There is a possibility the copy the data from the table, but
> I need the whole structure include the data.

'pg_dump' should do what you want.

-Doug
-- 
Doug McNaught       Wireboard Industries      http://www.wireboard.com/

      Custom software development, systems and network consulting.
      Java PostgreSQL Enhydra Python Zope Perl Apache Linux BSD...

Re: Export a database or a table from a database

От:
Jean-Michel POURE <jm.poure@freesurf.fr>
Дата:
> I want to export a database or a table from a database.
> There is a possibility the copy the data from the table, but
> I need the whole structure include the data.

pg_dump -u database_name --table tablename > file.sql
FAQ