Re: function accessing other db

Поиск
Список
Период
Сортировка
От Marcus Andree S. Magalhaes
Тема Re: function accessing other db
Дата
Msg-id 12780.200.161.200.85.1076600481.squirrel@webmail.webnow.com.br
обсуждение исходный текст
Ответ на Re: function accessing other db  (Bruno Wolff III <bruno@wolff.to>)
Ответы Re: function accessing other db  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-novice
This would work if both tables (tablea and tableb) resides on the
same database. What to do if, say tablea lives on database 'db1' and
tableb resides on another database, 'db2' ?

 Thanks for your message.


> On Thu, Feb 12, 2004 at 11:43:11 -0200,
>   "Marcus Andree S. Magalhaes" <marcus.magalhaes@vlinfo.com.br> wrote:
>>
>> Hello everyone,
>>
>> We have to copy some data from one table to another table in other
>> database.
>>
>> Is there any way to do this from inside a custom plpgsql function,
>> with no external applications, interfaces or storage?
>
> You can do something like:
>
> INSERT INTO tablea (col1, col2, col3) SELECT col1, col2, col3 FROM
> tableb;




В списке pgsql-novice по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: function accessing other db
Следующее
От: "Marcus Andree S. Magalhaes"
Дата:
Сообщение: Re: function accessing other db