Query from 2 data base

Поиск
Список
Период
Сортировка
От Roberto Joao Lopes Garcia
Тема Query from 2 data base
Дата
Msg-id 3.0.5.32.19980731120451.0088ca30@pop.hipernet.com.br
обсуждение исходный текст
Список pgsql-sql
Hellow all

I have 2 data bases: db_1 and db_2

Is it possible, under PostgreSQL, to do a query joining 2 tables one of
each database?
If not, are there plan in todo list?

Exemple:

db_1:
table city:
name char(50),
cod_state char(2);

db_2:
table state:
cod_state char(5),
name char(50)

SELECT db_1.city.name, db_2.state.name FROM db_1.city, db_2.state WHERE
db_1.city.cod_state=db_2.state.cod_state

Thank You

Roberto
------------------------------------------------------------------
Eng. Roberto João Lopes Garcia         E-mail: roberto@mha.com.br
F. 55 11 848 9906   FAX  55 11 848 9955

MHA Engenharia Ltda
E-mail: mha@mha.com.br    WWW: http://www.mha.com.br

Av Maria Coelho Aguiar, 215 Bloco D     2 Andar
Centro Empresarial de Sao Paulo
Sao Paulo - BRASIL - 05805 000
-------------------------------------------------------------------


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

Предыдущее
От: Daniele Orlandi
Дата:
Сообщение: Re: [SQL] What do I need to escape in an Insert ?
Следующее
От: ". ."
Дата:
Сообщение: sample database file