Can I do this?

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

Can I do this?

От:
"Wei Weng" <wweng@kencast.com>
Дата:
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
 

Re: Can I do this?

От:
Josh Berkus <josh@agliodbs.com>
Дата:
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 BerkusAglio Database SolutionsSan Francisco


Re: Can I do this?

От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:

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

FAQ