Search Postgresql Archives

Re: About selected data dump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



longlong wrote:
> I want to transmit data from a database to another partly,
> which means only data that selected in a table will be transmit.
> 
> I can select data , and then inert or update rows one by one.
> But is there any way better? 

You can export part of a table with
COPY (sql query) TO 'file'
and import it into another database with another COPY statement.

Is that what you need?

Yours,
Laurenz Albe

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux