pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Can I do this?
3+ messages / 3 participants
[nested] [flat]

* Can I do this?
@ 2003-01-17 23:51  Wei Weng <wweng@kencast.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Wei Weng @ 2003-01-17 23:51 UTC (permalink / raw)
  To: pgsql-sql

I want to select some data out of database A, and insert them into database B. Is it possible to do in one SQL query?

Thanks

Wei

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Can I do this?
@ 2003-01-18 00:19  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Wei Weng <wweng@kencast.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Bruce Momjian @ 2003-01-18 00:19 UTC (permalink / raw)
  To: Wei Weng <wweng@kencast.com>; +Cc: pgsql-sql


See /contrib/dblink, or use an application that attaches to both
databases, or use COPY somehow.

---------------------------------------------------------------------------

Wei Weng wrote:
> I want to select some data out of database A, and insert them into database B. Is it possible to do in one SQL query?
> 
> Thanks
> 
> Wei

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Can I do this?
@ 2003-01-18 00:31  Josh Berkus <josh@agliodbs.com>
  parent: Wei Weng <wweng@kencast.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Josh Berkus @ 2003-01-18 00:31 UTC (permalink / raw)
  To: Wei Weng <wweng@kencast.com>; pgsql-sql

Wei,

> I want to select some data out of database A, and insert them into database 
B. Is it possible to do in one SQL query?
> 

No.   Use a Perl script.

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-01-18 00:31 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-01-17 23:51 Can I do this? Wei Weng <wweng@kencast.com>
2003-01-18 00:19 ` Bruce Momjian <pgman@candle.pha.pa.us>
2003-01-18 00:31 ` Josh Berkus <josh@agliodbs.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox