Re: connecting to a differnt DB in PL/pgSQL

Поиск
Список
Период
Сортировка
От friedrich nietzsche
Тема Re: connecting to a differnt DB in PL/pgSQL
Дата
Msg-id 20030416075407.45063.qmail@web40511.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: connecting to a differnt DB in PL/pgSQL  (Franco Bruno Borghesi <franco@akyasociados.com.ar>)
Список pgsql-sql
Avevo gia' risolto il come farlo,
ma grazie lo stesso
Ciao
Danilo

--- Franco Bruno Borghesi
<franco@akyasociados.com.ar> ha scritto: > you should
install dblink as Tomasz said. To do
> that:
>
> cd ...../postgresql-7.3.2/contrib/dblink
> gmake
> gmake install
>
> then you enter into psql to create the functions:
> \i dblink.psql
>
> then you try (change the params):
>
> SELECT
>     *
> FROM
>     dblink('host=localhost port=5432 dbname=franco
> user=admin password=1234',
> 'SELECT id, name FROM people')
>     AS (id INTEGER, people TEXT);
>
> If you skip the values host, port, ..., the defaults
> will be used.
> If it works in psql, it should work inside a
> function.
>
>
>
>


______________________________________________________________________
Yahoo! Cellulari: loghi, suonerie, picture message per il tuo telefonino
http://it.yahoo.com/mail_it/foot/?http://it.mobile.yahoo.com/index2002.html



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

Предыдущее
От: Rudi Starcevic
Дата:
Сообщение: Re: changing column size and type.
Следующее
От: pginfo
Дата:
Сообщение: Re: changing column size and type.