Copying data from one table of one database to other table f other database - Mailing list pgsql-novice

From Preetam Palwe
Subject Copying data from one table of one database to other table f other database
Date
Msg-id D2885A8132EB554B854E9E017ED9FEAC144133@exbm.aftekpune.com
Whole thread Raw
Responses Re: Copying data from one table of one database to other table f other database  (Sean Davis <sdavis2@mail.nih.gov>)
List pgsql-novice

Hello all

                I want to copy the data from one table to other table. These tables reside in two different databases.

I am thinking of using following query

 

insert into table2 (select * from table1)

 

but the problem is how can I specify the database name?

 

thanks for the help

 

~PP

pgsql-novice by date:

Previous
From: Adam Ruth
Date:
Subject:
Next
From: Sean Davis
Date:
Subject: Re: Copying data from one table of one database to other table f other database