About selected data dump

Started by longlongover 18 years ago2 messagesgeneral
Jump to latest
#1longlong
asfnuts@gmail.com

hello,all

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?

#2Laurenz Albe
laurenz.albe@cybertec.at
In reply to: longlong (#1)
Re: About selected data dump

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